Skip to content

Commit

Permalink
Add CORS to Discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
spjmurray committed Mar 5, 2024
1 parent d4373f7 commit e91c2a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/identity/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Helm chart for deploying Unikorn's IdP

type: application

version: v0.1.5
appVersion: v0.1.5
version: v0.1.6
appVersion: v0.1.6

icon: https://raw.githubusercontent.com/unikorn-cloud/assets/main/images/logos/dark-on-light/icon.png
2 changes: 2 additions & 0 deletions pkg/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ func (h *Handler) setCORS(w http.ResponseWriter) {
}

func (h *Handler) GetWellKnownOpenidConfiguration(w http.ResponseWriter, r *http.Request) {
h.setCORS(w)

result := &generated.OpenidConfiguration{
Issuer: h.options.Host,
AuthorizationEndpoint: fmt.Sprintf("%s/oauth2/v2/authorization", h.options.Host),
Expand Down

0 comments on commit e91c2a9

Please sign in to comment.