Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400 Bad Request Error with Okta #5

Open
Swampcritter opened this issue Jun 8, 2021 · 3 comments
Open

400 Bad Request Error with Okta #5

Swampcritter opened this issue Jun 8, 2021 · 3 comments

Comments

@Swampcritter
Copy link

I configured the oidc part in the config.php with our Okta Preview (Development) server environment.

// oidc server
define( 'OIDC_BASE_URL', 'okta-preview-url' );
define( 'OIDC_CLIENT_NAME', 'client-name' );
define( 'OIDC_CLIENT_SECRET', 'client-pass' );
// Option 1: link OIDC users to local YOURLS users
//$oidc_profiles = array(
// 'YOURLS_UNAME' => 'sub attribute from OIDC provider',
//);
// Option 2, all users on OIDC platform have YOURLS accounts. uses 'preferred_username' attribute
define( 'OIDC_BYPASS_YOURLS_AUTH', true );

However, when I test it against said Okta site, it bombs out with a 400 Bad Request error:

Identity Provider: Unknown
Error Code: invalid_request
Description: The 'redirect_uri' parameter must be a Login redirect URI in the client app settings: https://wabtec-admin.oktapreview.com/admin/app/oidc_client/instance/0oaznkfjp4JQAdz3v0h7#tab-general

Is there something extra that needs to be configured on either the Okta side or the client side?

@adrwh
Copy link

adrwh commented Jul 20, 2021

Hello, did you get any feedback? I'd also like to hook up Okta.

I think the problem is because Okta OIDC wants to use authorization-code flow, rather then client credentials.

@abdennour
Copy link

in docs, there is user/config.php . who could tell me this path is relative to what ?

@Shocktrooper
Copy link

Was anyone able to figure this out. I have been also having issues with OKTA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants