codeprasan opened a new issue, #35239:
URL: https://github.com/apache/airflow/issues/35239
### Apache Airflow version
Other Airflow 2 version (please specify below)
### What happened
The OKTA authentication is identifying and verifying the users in OKTA
console. Logs are shown with Authenticated successfully at OKTA web console
however when its redirected to Airflow web its showing "The request to sign in
was denied."
### What you think should happen instead
User should able to login to home page
### How to reproduce
The OKTA authentication is identifying and verifying the users in OKTA
console. Logs are shown with Authenticated successfully at OKTA web console
however when its redirected to Airflow web its showing "The request to sign in
was denied."
### Operating System
RedHat OpenShift
### Versions of Apache Airflow Providers
_No response_
### Deployment
Other
### Deployment details
Airflow setup using Docker in RedHat OpenShift environment
### Anything else
Here is the code configured in webserver_config.py file
AUTH_TYPE = AUTH_OAUTH
AUTH_ROLE_ADMIN = 'Viewer'
AUTH_ROLES_SYNC_AT_LOGIN = True # Checks roles on every login
AUTH_USER_REGISTRATION = True # Will allow user self registration
AUTH_USER_REGISTRATION_ROLE = "Viewer"
AUTH_ROLES_MAPPING = {
"Airflow_D_User_Read": ["Viewer"]
}
OAUTH_PROVIDERS = [
{
'name':'okta',
'icon':'fa-circle-o',
'token_key':'access_token',
'remote_app': {
'client_id':'<ClientID>',
'client_secret':'<ClientSecret>',
'api_base_url':'https://abc.xyz.com/oauth2/v1/',
'client_kwargs':{'scope': 'openid email profile groups'},
"authorize_url":"https://abc.xyz/oauth2/ausefjy7k3J5S1AXz297/v1/authorize",
"access_token_url":"https://abc.xyz/oauth2/ausefjy7k3J5S1AXz297/v1/token",
"redirect_uri":
"https://airflow-webcl-dev.apps.das/oauth-authorized/okta",
"request_token_url": None,
"jwks_uri": "https://abc.xyz.com/oauth2/v1/keys",
"userinfo_uri": "https://abc.xyz.com/oauth2/v1/userinfo",
"issuer": "https://abc.xyz.com"
}}
]
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]