navigate to localhost than domain login github single authentication spring - spring

i follow bellow link up test single sign on.
https://spring.io/guides/tutorials/spring-boot-oauth2/
I open home page "/" it will foreword me to localhost:8080/login i want this to go login to github.com/login.
i want my application to login through github credentials.
i am using spring with maven and test simple authentication by one click. when you login in gmail you can open linked website and by one click you login to linked using gmail credentials or access tokens
i want my application to login through github credentials.

We should use openJDK.
Kindly find below steps
https://spring.io/quickstart > use java 8 and add web dependencies download zip
download and install eclipse
download Java Development Kit JDK from recommended spring.io/quickstart website not Java from Oracle official website.

Related

Google Cloud Platform project with the Gmail API: Create token for Desktop Application

Scope: I want to access my Gmail via python and the Gmail API on Raspbery pi /Raspian or Windows 10.
Following the official guide from Google I created a project and enabled the Gmail API, Authorization credentials for a desktop application according to this guide for Desktop app, downloaded it and renamed it to credentials.json when running quickstart.py I get as expected:
>>> # get the Gmail API service
... service = gmail_authenticate()
Please visit this URL to authorize this application: https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=[XXX.apps.googleusercontent.com]&redirect_uri=http%3A%2F%2Flocalhost%3A34551%2F&scope=https%3A%2F%2Fmail.google.com%2F&state=[xxx]&access_type=offline
When opening the URL in the browser:
I follow the link to unsafe:
and get the link to localhost:
http://localhost:34551/?state=[XXX]&code=[XXX]&scope=https://mail.google.com/
Question:
How can I get the app authorized / get the client_secret.json, etc?
Installing xampp solved the issue.
The windows IIS did not work in this case

Azure SSO and Laravel login have issue with SAML

I have followed the solution explained in the Azure SSO related question in the forum
After that i checked in the Portal Azure try testing from the portal itself but it keeps redirecting me to the login page only if doing it first time so its new to me though. am i missing something or i need to write login handler for my application to handle this as for now i have not created any handler for login because as per the description in the link it supposed to work .
I tried by having dd in the service provider that has been created but its not reflecting as i am confused and stuck here i am not getting where i need to write the logic where i need to handle users with type in this as for login now it is redirecting me to login route when i test it from azure portal.
Any guidance on this would be helpful !
• I would suggest you follow the Github documentation below for configuring the lavarel SAML SSO in Azure AD as it uses Lavarel package for SAML2 integration as a service provider itself. Also, as you have added the service provider in your case, it doesn’t need to if you are using v 5.5 and higher of Lavarel as it gets automatically registered. Its just for older versions that you need to add the service provider in ‘config/app.php’.
https://github.com/aacotroneo/laravel-saml2
• Thus, once you do the above and publish the config files accordingly by executing the php commands, then you will need to modify the IDP settings in PHP app’s configuration and in here, please ensure that you are entering the ACS(Reply) URL and Identifier (Entity ID) from the Azure AD created application correctly. Also, ensure that the required SAML URLs and certificate keys are correctly entered in the environment variables required in the aad_idp_settings.php
Also, please check the actual routes in the metadata, by navigating to ‘http(s)://{laravel_url}/{idpName}/metadata’ as they must be reachable for your application to pass the authentication claims to AAD for get the authentication token and since, you are configuring SSO, please check the IDP metadata for ‘http(s)://{laravel_url}/single_sign_on/mytestidp1/metadata’ and finally please ensure that ‘RedirectIfAuthenticated.php’ is configured to redirect to ‘/routesPrefix/myIdp1/login’ and the same in '/Exceptions/Handler.php'
By following the above steps, your issue should be resolved.

How to make a login page uses Single Sign On on WebSphere?

I have a web application deployed on WAS (8.5.5) where the login page was created using form login method, as described at: Customizing web application login
I would like to use Single Sign On (Windows domain [Kerberos/SPNEGO]) on this web application login page, but have no idea of what I need to add to that code to make it use SSO.
I really appreciate any help. Thanks
Just look in the documentation and other posts on SO regarding SPNEGO.
You dont have to do anything with your application nor login page. It is purely configuration on the server side. It is too broad to provide full configuration steps in this post.
Start with the following:
Creating a single sign-on for HTTP requests using SPNEGO Web authentication
Implementing Kerberos in a WebSphere Application Server Environment Redbook

How to install Google Application for domain from New Marketplace.?

I have done setup of project using New Marketplace. When i click on "Test Install Flow" (Api Console) ,one popup is coming, asking for permissions (scopes) to access domain. When i accept "Terms and Conditions" pop up closed.It is not redirecting to setup url. is this correct behaviour.? or It should need to redirect to setup url.
If you're trying to deploy an Google Apps Marketplace but restrict it to your domain, you can publish it to the Chrome Web Store and limit the visibility to your domain.

register new users in openfire?

Is there anyway to register new users through an HTTP request in OpenFire. I want users to be able to sign up for my messaging service from within an app written in cocoa. Can this be done??
Take a look at the web administration console's create-a-user page (http://<openfire-server>:<port>/user-create.php). It uses a simple HTTP GET form to create a new user. I imagine you could pull the submit URL and various required fields from the source of that page and build your own GET request from your Cocoa app.
The easiest way to register a new user in Openfire is the UserService plugin. Just take a look at http://www.igniterealtime.org/projects/openfire/plugins/userservice/readme.html
you can use the available user service plugin which is available in openfire admin console, choose the plugin tab, choose available plugin and click the green + button to install user service plugin; second, go to the server tab ->server setting page, and make sure you enable the user service plugin
hope this can help the others~~~~~~~~~~
You can use rest API plugin in openfire
Go to plugin then go to available plugin then add rest API plugin then go to help page or
https://www.igniterealtime.org/projects/openfire/plugins/restapi/readme.html
You'll get all the rest API to perform operation in openfire
You can use in-band registration as specified in XEP-77 to add accounts from the XMPP connection you're going to need.
lookup about http-bind in your openfire server
http://localhost:9090/http-bind.jsp
I use strope js client lib work with my rails web project well, so I guess you can also use your own xmpp lib to realize it in your cocoa project

Resources