File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,19 @@ export default class AuthorizationEndpoint {
63
63
init ( Indiekit ) {
64
64
Indiekit . addEndpoint ( this ) ;
65
65
66
- Indiekit . config . application . authorizationEndpoint = this . mountPath ;
67
- Indiekit . config . application . introspectionEndpoint = `${ this . mountPath } /introspect` ;
68
- Indiekit . config . application . tokenEndpoint = `${ this . mountPath } /token` ;
66
+ // Only mount if authorization endpoint not already configured
67
+ if ( ! Indiekit . config . application . authorizationEndpoint ) {
68
+ Indiekit . config . application . authorizationEndpoint = this . mountPath ;
69
+ }
70
+
71
+ // Only mount if introspection endpoint not already configured
72
+ if ( ! Indiekit . config . application . introspectionEndpoint ) {
73
+ Indiekit . config . application . introspectionEndpoint = `${ this . mountPath } /introspect` ;
74
+ }
75
+
76
+ // Only mount if token endpoint not already configured
77
+ if ( ! Indiekit . config . application . tokenEndpoint ) {
78
+ Indiekit . config . application . tokenEndpoint = `${ this . mountPath } /token` ;
79
+ }
69
80
}
70
81
}
You can’t perform that action at this time.
0 commit comments