
RehanA.77534 (Customer) asked a question.
When I click on the Login button. I faced this error: --
400
BAD REQUEST
Your request resulted in an error.
Go to Homepage
identity provider: Unknown
Error Code : invalid_request
Description: The direct_url' parameter must be a Login redirect URI in the client app settings: https://dev-52866645-admin.okta.cm/admin/oidc_client/instance/genral.
here is my configuration:
oidc: {
clientId: '0oa1g9tp14KiDLzJZ5d7',
redirectUri: '.okta.dev-52866645:/callback',
endSessionRedirectUri: '.okta.dev-52866645:/callback',
discoveryUri: 'https://dev-52866645.okta.com/oauth2/default',
scopes: ['openid', 'profile', 'offline_access'],
requireHardwareBackedKeyStore: false,
},
};
And when I click on URI that given above in the description in BAD Request 400 error. It shows me the login page. After this, it should be redirected to the app but it again goes back to the website and the app still showing me the Login button, not log out and URL's buttons.

This is Mihai from Okta.
https://example.okta.com/oauth2/v1/authorize?client_id=0oais56vveNLSDqby0x7&scope=openid+profile&response_type=id_token&response_mode=fragment&nonce=1234&redirect_uri=http://localhost:8888/my-app/signin.html/&state=someState
Make sure that redirect _uri = http://localhost:8888/my-app/signin.html/ is registered as an allowed Login redirect URI in Open ID Client (using client id 0oais56vveNLSDqby0x7 in the example above)