Open yogeshgurjar127 opened 4 months ago
In the OAuth2 configuration the scope
must be an array:
-scope: "read:user"
+scope: ["read:user"]
Hello @To-om
I adjusted the scope in the configuration file, however now I am getting the below error. For your convenience, the error message is provided below.
{"type":"AuthenticationError","message":"Authentication failure"}
Can you please help me with this?
The scope seems to be incorrect. Check the documentation of your IdP and set the expected value. Have you tried the default value: scope: ["openid", "email"]
?
@To-om Yes, I already tried the default value of scope but still getting the same error.
Please find below conf details.
oauth2 { clientId: "cortex" clientSecret: "NnLadsgsgvssttlUzJKX4TnJS" redirectUri: "http://localhost:9001/api/ssoLogin" responseType: "code" grantType: "authorization_code" authorizationUrl: "http://X.X.X.X:8080/auth/realms/openid/protocol/openid-connect/auth" authorizationHeader: "Bearer" tokenUrl: "http://X.X.X.X:8080/auth/realms/openid/protocol/openid-connect/token" userUrl: "http://X.X.X.X:8080/auth/realms/openid/protocol/openid-connect/userinfo"
scope: ["openid", "email"]
userIdField: "email"
} }
@To-om Could you please assist me with this?
Hello @To-om
Could you please update on this issue?
Hello Team,
When trying to use single sign-on for Cortex this error message appears in the logs:
Below is my configuration file.
oauth { name: oauth2 clientId: "cortex" clientSecret: "Secret" redirectUri: "http://localhost:9001/api/ssoLogin" responseType: "code" grantType: "authorization_code" authorizationUrl: "http://X.X.X.X:8080/realms/openid/protocol/openid-connect/auth" authorizationHeader: "Bearer" tokenUrl: "http://X.X.X.X::8080/realms/openid/protocol/openid-connect/token" userUrl: "http://X.X.X.X::8080/realms/openid/protocol/openid-connect/userinfo"
scope: ["openid", "email"]
}
Could you please point me in the right direction for configuration guidance?
Thanks in advance!
Work Environment
@To-om Can you please help me with this?