File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 1
1
package goic
2
2
3
3
import (
4
+ "encoding/base64"
4
5
"encoding/json"
5
6
"log"
6
7
"net/http"
8
+ "net/url"
7
9
"strings"
8
10
)
9
11
@@ -27,6 +29,7 @@ type WellKnown struct {
27
29
UserInfoURI string `json:"userinfo_endpoint"`
28
30
SignOutURI string `json:"end_session_endpoint,omitempty"`
29
31
RevokeURI string `json:"revocation_endpoint,omitempty"`
32
+ XRevokeURI string `json:"token_revocation_endpoint,omitempty"`
30
33
AlgoSupport []string `json:"id_token_signing_alg_values_supported"`
31
34
jwks struct {
32
35
Keys []struct {
@@ -102,6 +105,10 @@ func (p *Provider) getWellKnown() (*WellKnown, error) {
102
105
return nil , err
103
106
}
104
107
108
+ if p .wellKnown .RevokeURI == "" && p .wellKnown .XRevokeURI != "" {
109
+ p .wellKnown .RevokeURI = p .wellKnown .XRevokeURI
110
+ }
111
+
105
112
if p .wellKnown .KeysURI == "" {
106
113
return p .wellKnown , nil
107
114
}
You can’t perform that action at this time.
0 commit comments