Is their ay way for Rally automatic login using url? - rally

I want the user to get login to rally application using URL
- might be passing user credentials using url
- sending authentication header info

Related

FusionAUth : How to merge user signup + sign in FusionAuth, to make user Auto login to web application

We are trying FusionAuth & looking to have a single step flow for Sign up + Sign In.
After user signs up, we want to show/land him directly to our application's dashboard page (without showing him login page in between the flow). The authentication should happen but internally i.e we are expecting OAuth2 standard IdToken in response to "WebApplication" so that web application can use IdToken to allow user to application.
Please note that we don't want to use approaches where we need to pass Username/password to our web application, don't want to handle user credentials. Also that we dont want to use Authentication Tokens returned in Registration flow because AuthenticationTokens are not that secure, looking to use OAuth2 based IdToken instead.
I have came across this post "https://fusionauth.io/community/forum/topic/165/taking-a-user-directly-to-the-registration-page/3" and tried following request, but it is showing Login page instead of registration.
/oauth2/register?client_id=<Configured_client_id>&redirect_uri=<Configured_redirect_uri>&response_type=code
(I have not used CSRF parameter though)
Please can you suggest why its showing Login Page?
You should be able to have a user register and be sent directly to your application, as long as you set the correct redirect_uri and put that on the registration URL:
https://local.fusionauth.io/oauth2/register?client_id=c50329fa-93e5-4618-8d9f-73d0ab069a23&response_type=code&redirect_uri=https%3A%2F%2Fapp.example.com%2F
The application will then receive a code that can be exchanged for an access token. You can call the userinfo endpoint with that token and get user information like email address, etc.
What you won't get that it seems like you might want is an id token. For that you'll have to send the user through the login process with a scope of profile. However, you could mind your own 'id token'-lite using the values from the userinfo endpoint and the JWT vending: https://fusionauth.io/docs/v1/tech/apis/jwt/#vend-a-jwt

Callback URL not working in Auth0, locally

I am trying to configure login using Auth0. As part of the initial steps, I created an application and added Allowed Callback URLs and Allowed Logout URLs. I have no hosted pages in /login, /login-results, /logout routes. I am just trying to learn working of Auth0 by getting the JWT token and test it in http://jwt.io/.
I tried to use the login UI flow which available out of the box in Auth0. I created the login URL as mentioned in this doc to hit this endpoint
GET https://YOUR_DOMAIN/authorize?audience=API_IDENTIFIER&scope=SCOPE&response_type=code&client_id=YOUR_CLIENT_ID&redirect_uri=https://YOUR_APP/callback&state=STATE
But I am getting this error while executing the endpoint which I created using the credentials of my application with above-mentioned callback URL.
http://127.0.0.1:8080/login-results#error=access_denied&error_description=Service%20not%20found%3A%20name
Endpoint which I generated:
https://fsnd-kavin.auth0.com/authorize?audience=audiencename&response_type=token&client_id={CLIENT_ID}&redirect_uri=http://127.0.0.1:8080/login-results
What is the actual issue? Am I missing any other configurations?
Service Not Found
This error message points to that you passed non existent API identifier as audience. Check that API is created in the API section of Dashboard.

Loopback facebook login

I trying to implement login facebook by using Loopback as API,
Following http://loopback.io/doc/en/lb3/Tutorial-third-party-login.html
and https://github.com/strongloop/loopback-example-passport I can't apply the tutorial to my case because at the example,
client side and server side are on the same project.
My app:
Web application (NextJS custom express server)
example endpoint: www.myapp.com
User click login by facebook button to get access_token after that send to API.
API application (Loopback)
example endpoint: www.api-myapp.com
API get access_token from client then fetch data from facebook graph API.
If email is existed then auto-login and return token to the client.
Else register a new user and return token to the client.
From the following flow, I can't implement this flow by using Loopback :(
I can register/login via username and password in a normal case but I confusing to register/login by facebook login.
This behavior would be very easy to implement using Loopback. Assuming you are following the third party login documentation, you would simply:
Enable facebook-passport authentication.
Create a button in your frontend for "login with facebook" which redirects the user to the authpath (ie http://<api-server>/auth/facebook).
Set the successRedirect to http://<app-server>/<post-login-url>.

How to invite user using Api in mail chimp

I am integrating mail chimp API in my rails project
I am using OAUTH2 API Documentation and following the below ref.
http://developer.mailchimp.com/documentation/mailchimp/guides/how-to-use-oauth2/
It integrate successfully and return an access token.
My Project has a requirement that Admin can invite user
and give the permission of each user using Api same like below image.
Is there Any endpoint available in a API that accept the parameters
like access token,user_email and user_type and add/update the visitor same like web ?
there was in the MailChimp 2.0. It has been removed in the 3.0 (I don't know why). I'm trying to make the same call as the site is when you invite a user but the API has an integrated Chapcha / antiforgery as you can see in the picture.
Request URL:https://us16.admin.mailchimp.com/account/users/invite-post
Request Method:POST
--BODY
email:[EMAIL]
role:author
welcome_msg:[Message] (Optional)
g-recaptcha-response:[CAPTCH]
__csrf_token:[TOKEN]

Implementing a sign in with google button between server and client

I am struggling to understand how to implement a Google login. This is currently where I am at:
The client loads a default static HTML page from the server with a login button. Once clicking the login button it redirects them to the /login endpoint on my server. This redirects the user to the Google login and then consent page. Once the user logs into Google it redirects them to the /oauth2callback endpoint on my server. The response from Google contains the token that I need to get all the user info that I need. After I get the info from Google's services I need a way to send this info to the client in a JSON format. This info will be used in order for the client to connect to a websocket endpoint on my server.
I don't understand how I can send this info to the client. The client has been redirected to pages with no GET requests made to my server so I cannot send a JSON response. I don't want the client to make an additional GET request to the server if at all possible. How can I send the data I need to to the client?
I'm guessing your oauth2callback redirects to, or serves a page to your user. How about setting the JSON into a cookie that your JavaScript can then parse.