You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently oauth plugins themselves handle redirects to the oauth provider login page, but there's no way for plugins to do a redirect without resorting to provider specific code. We should add an overall 'HawtioOAuth' module with an API that plugins can use to trigger a redirect without having to depend on specific provider code.
The text was updated successfully, but these errors were encountered:
There's now a facade module in plugins/includes.ts that provides a couple API functions that plugins can use:
authenticatedHttpRequest(options:any) calls $.ajax() under the covers and returns the promise object, use to make a call with the active provider's token if present. getOAuthToken() returns the active provider's token. getUserProfile() returns the active provider's user profile that's also merged into the userDetails service after angular is bootstrapped. doLogout() makes the active provider clear it's token storage and re-direct to the login screen.
Currently oauth plugins themselves handle redirects to the oauth provider login page, but there's no way for plugins to do a redirect without resorting to provider specific code. We should add an overall 'HawtioOAuth' module with an API that plugins can use to trigger a redirect without having to depend on specific provider code.
The text was updated successfully, but these errors were encountered: