Hi, any way to get via sdk the provider login URL for ex. Google... To hide the casdoor login page and go straight to the provider?
MyFront -> MyAuthAbstraction -> Casdoor -> Google
(Without showing the Casdoor login page)
Hi, any way to get via sdk the provider login URL for ex. Google... To hide the casdoor login page and go straight to the provider?
MyFront -> MyAuthAbstraction -> Casdoor -> Google
(Without showing the Casdoor login page)
why don't you directly connect to google oauth?
As casdoor already has all those Providers implemented, It's interesting to not having to reimplement all over again
@hsluoyz is there an existing option or chance to implement a feature toggle to redirect directly to the provider instead of going to the casdoor login page when doing the following:
authURL := oauth2Config.AuthCodeURL(
state,
oauth2.SetAuthURLParam("code_challenge", codeChallenge),
oauth2.SetAuthURLParam("code_challenge_method", "S256"),
oauth2.SetAuthURLParam("provider", idp),
oauth2.SetAuthURLParam("prompt", "select_account"),
)
if you only leave oauth login ON, and only provide one provider (like google), Casdoor will auto redirect to google
Sign up to reply, like and follow topics.
Want to read more? Browse other topics in OpenAgent or view latest topics.