From 809e224655d77256eb9213c0395ab38604f82723 Mon Sep 17 00:00:00 2001 From: arekkas Date: Tue, 21 Aug 2018 10:49:54 +0200 Subject: [PATCH] cmd: Public subject type should cause public id alg Closes #992 Signed-off-by: arekkas --- cmd/server/handler_oauth2_factory.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/server/handler_oauth2_factory.go b/cmd/server/handler_oauth2_factory.go index 7ad00d9851..bdc4d5afec 100644 --- a/cmd/server/handler_oauth2_factory.go +++ b/cmd/server/handler_oauth2_factory.go @@ -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() }