Skip to content

Commit

Permalink
cmd: Public subject type should cause public id alg
Browse files Browse the repository at this point in the history
Closes #992

Signed-off-by: arekkas <aeneas@ory.am>
  • Loading branch information
arekkas committed Aug 21, 2018
1 parent c67b7fe commit 809e224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/server/handler_oauth2_factory.go
Expand Up @@ -175,7 +175,7 @@ func newOAuth2Handler(c *config.Config, frontend, backend *httprouter.Router, cm
if stringslice.Has(c.GetSubjectTypesSupported(), "pairwise") {
sias["pairwise"] = consent.NewSubjectIdentifierAlgorithmPairwise([]byte(c.SubjectIdentifierAlgorithmSalt))
}
if stringslice.Has(c.GetSubjectTypesSupported(), "pairwise") {
if stringslice.Has(c.GetSubjectTypesSupported(), "public") {
sias["public"] = consent.NewSubjectIdentifierAlgorithmPublic()
}

Expand Down

0 comments on commit 809e224

Please sign in to comment.