What is the parameter should I pass to indicate IDP connection

What is the parameter that I should pass when authorizing user to indicate the idp connection?

HI @mkandasamy,

You should pass in the IdP Connection’s name in the connection query parameter of your login request.

It should look something like the following:

https://{yourDomain}/authorize?
    response_type=code&
    client_id={yourClientId}&
    redirect_uri={https://yourApp/callback}&
    scope={scope}&
    audience={apiAudience}&
    state={state}&
    connection=YOUR_IDP_CONNECTION_NAME

If you found this post helpful or interesting, please give it a like :+1: . Your interaction makes a difference. Have a wonderful day! :sun_with_face:

Thanks,
Rueben


:video_camera: Prefer how-to videos instead of written docs? We’ve got you covered! Check out our OktaDev YouTube channel for those helpful resources!

Thanks Rueben, but I’m looking for a solution in express-openid-connect nodejs library. Like the following:

app.use(
  auth({
    issuerBaseURL: process.env.AUTH0_ISSUER_BASE_URL,
    baseURL: process.env.BASE_URL,
    clientID: process.env.AUTH0_CLIENT_ID,
    secret: process.env.SESSION_SECRET,
    authRequired: true,
    auth0Logout: true,
    authorizationParams: {
    }
    //connection: "SampleMultiTenantUI-AzureAD"
  })
);

what would be the parameter I can pass in the nodejs middleware object indentifying connection name?

1 Like

Hi @mkandasamy,

Thanks for following up.

The code snippet you shared is the correct way to pass the connection parameter into your login request.

Thanks,
Rueben

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.