Add redirect uri for oauth2 login
This commit is contained in:
parent
5039e770bd
commit
25f0b29da8
2 changed files with 4 additions and 4 deletions
|
@ -24,8 +24,8 @@ Sample:
|
||||||
metadata:
|
metadata:
|
||||||
name: application
|
name: application
|
||||||
annotations:
|
annotations:
|
||||||
"nginx.ingress.kubernetes.io/auth-url": "https://$host/oauth2/auth"
|
nginx.ingress.kubernetes.io/auth-url: "https://$host/oauth2/auth"
|
||||||
"nginx.ingress.kubernetes.io/auth-signin": "https://$host/oauth2/sign_in"
|
nginx.ingress.kubernetes.io/auth-signin: "https://$host/oauth2/start?rd=$request_uri"
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@ apiVersion: extensions/v1beta1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
nginx.ingress.kubernetes.io/auth-signin: https://$host/oauth2/start
|
nginx.ingress.kubernetes.io/auth-url: "https://$host/oauth2/auth"
|
||||||
nginx.ingress.kubernetes.io/auth-url: https://$host/oauth2/auth
|
nginx.ingress.kubernetes.io/auth-signin: "https://$host/oauth2/start?rd=$request_uri"
|
||||||
name: external-auth-oauth2
|
name: external-auth-oauth2
|
||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
spec:
|
spec:
|
||||||
|
|
Loading…
Reference in a new issue