caddy-security icon indicating copy to clipboard operation
caddy-security copied to clipboard

question: authentication portal multiple identity provider?

Open resmo opened this issue 3 years ago β€’ 3 comments

A clear and concise description of what you want to accomplish.

Hi, I successfully used the plugin with gitlab only but I wanted to add github as a fallback and wondered how to add multiple providers to the auth portal:

  security {
    oauth identity provider github xxx yyy

    oauth identity provider gitlab {
      realm gitlab
      driver gitlab
      domain_name gitlab.com
      client_id xxx
      client_secret xxx
      scopes openid email profile
      user_group_filters foo
    }

    authentication portal myportal {
      crypto default token lifetime 3600
      crypto key sign-verify xxx
      ...

I tried

      ...
      enable identity provider gitlab
      enable identity provider github

and tried

      ...
      enable identity provider gitlab github

but these didn't do the trick.

Could you give me a hint? Thanks.

resmo avatar Jul 04 '22 16:07 resmo

@resmo , what happens if you do β€œ enable identity provider gitlab github”?

greenpau avatar Jul 04 '22 17:07 greenpau

never mind, retried enable identity provider gitlab github and it worked. Thanks for the quick reply!

resmo avatar Jul 04 '22 17:07 resmo

@resmo , glad it worked. Will look into this issue later.

greenpau avatar Jul 04 '22 17:07 greenpau