Skip to content

add new feature integrated with OIDC compatible#214

Open
jason-webcomm wants to merge 1 commit intoopenziti:mainfrom
jason-webcomm:main
Open

add new feature integrated with OIDC compatible#214
jason-webcomm wants to merge 1 commit intoopenziti:mainfrom
jason-webcomm:main

Conversation

@jason-webcomm
Copy link
Copy Markdown

the new ZITI_BROWZER_BOOTSTRAPPER_TARGETS as below

ZITI_BROWZER_BOOTSTRAPPER_TARGETS=' {
"targetArray": [
{
"vhost": "${ZITI_BROWZER_VHOST}",
"service": "${ZITI_BROWZER_SERVICE}",
"path": "/",
"scheme": "http",
"idp_issuer_base_url": "${ZITI_BROWZER_OIDC_URL}",
"idp_client_id": "${ZITI_BROWZER_CLIENT_ID}",
"idp_type": "OIDC",
"idp_authorization_endpoint": "${ZITI_BROWZER_AUTH_ENDPOINT}",
"idp_token_endpoint": "${ZITI_BROWZER_TOKEN_ENDPOINT}",
"idp_userinfo_endpoint": "${ZITI_BROWZER_USERINFO_ENDPOINT}",
"idp_issuer": "${ZITI_BROWZER_ISSUER}",
"idp_jwks_uri": "${ZITI_BROWZER_JWKS_URI}",
"idp_scopes": ["${ZITI_BROWZER_SCOPE}"]
}
]
}'

req.ziti_idp_issuer_base_url = target.idp_issuer_base_url;
req.ziti_idp_client_id = target.idp_client_id;
req.ziti_idp_client_id = target.idp_client_id;
req.ziti_idp_type = target.idp_type;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you set these dynamically based on the base url and oidc discovery endpoint? there should be a .well-known/openid-configuration url that browzer can use to bootstrap these values. Then all these values can be just "optional" and I don't think you'd need the "idp_type" enum then?

With these changes, you were able to connect to keycloak?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we set the url data from oidc discovery endpoint on runtime, i think that will have cors issue and performance issue. so i would like to use the setting on configuration file. I add idp_type that for fallback original setting (Auth0 first).

this pr with pr on ziti-browzer-runtime , i can connect to keycloak.

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

Successfully merging this pull request may close these issues.

2 participants