Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

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)

1views
2users
1 minread

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

1 / 5
Sep 2025