Skip to content

ERR Failed to get user error="Get \"\": unsupported protocol scheme \"\"" #26

@need4swede

Description

@need4swede

Trying to setup a 'Generic' OAuth method.
Using Microsoft, created the app in Azure, passed in the creds and endpoints.
I get an error after singing in via Microsoft and returning to tinyauth:

ERR Failed to get user error="Get \"\": unsupported protocol scheme \"\""

Tried toying around with endpoint URL's, but can't figure it out.

Using Caddy as my proxy, here is my relevant entries from my Caddyfile:

(tinyauth_forwarder) {
    forward_auth <ip>:3000 {
        uri /api/auth
    }
}

login.domain.net {
    reverse_proxy <ip>:3000
}

app.domain.net {
    import tinyauth_forwarder
    reverse_proxy <ip>:8080
}

My tinyauth docker-compose:

environment:
      - SECRET=<secret>
      - APP_URL=https://login.domain.net
      - USERS=<user:password>
      - GENERIC_CLIENT_ID=<hidden>
      - GENERIC_CLIENT_SECRET=<hidden>
      - GENERIC_AUTH_URL=https://login.microsoftonline.com/<hidden>/oauth2/v2.0/authorize
      - GENERIC_TOKEN_URL=https://login.microsoftonline.com/<hidden>/oauth2/v2.0/token
      - GENERIC_USER_URL=https://graph.microsoft.com/v1.0/me
      - GENERIC_SCOPES=openid,profile,email,User.Read

Logging in via username and password works perfectly fine. Just having a hard time getting the OAuth to work.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions