Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Oauth2 support #114

Closed
wants to merge 14 commits into from
Closed

Add Oauth2 support #114

wants to merge 14 commits into from

Conversation

alex-schneider
Copy link
Contributor

No description provided.


pa, passOK := content.Attributes["client_secret"]
pv, _ := pa.Expr.Value(evalCtx)
pass := seetie.ValueToString(pv)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich würde hier nicht von user und pass sprechen; die OAuth2-Nomenklatur ist client id und client secret. Also user -> clientId und pass -> clientSecret?

return "", "", "", fmt.Errorf("Missing OAuth2 'client_id' or 'client_secret' value")
}

key := oa.config.TokenEndpoint + "|" + user + "|" + pass
Copy link
Collaborator

@johakoch johakoch Feb 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ist der letzte Bestandteil des key (also das client secret) nötig? Die client id ist pro authorization server eindeutig; client id und secret sind unveränderlich.

@alex-schneider
Copy link
Contributor Author

See #130

@alex-schneider alex-schneider deleted the oauth2 branch March 11, 2021 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants