Skip to content

Commit

Permalink
Merge pull request #22 from indigo423/config/oauth
Browse files Browse the repository at this point in the history
Allow users to configure authentication provider
  • Loading branch information
nicolastakashi authored Oct 28, 2024
2 parents 62a7532 + 6410839 commit 22d6b24
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/perses/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: perses
description: Perses helm chart
icon: https://avatars.githubusercontent.com/u/77209215?s=200&v=4
type: application
version: 0.5.0
version: 0.6.0
appVersion: "v0.48.0"
sources:
- https://github.com/perses/perses
Expand Down
2 changes: 1 addition & 1 deletion charts/perses/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Perses helm chart

![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.48.0](https://img.shields.io/badge/AppVersion-v0.48.0-informational?style=flat-square)
![Version: 0.6.0](https://img.shields.io/badge/Version-0.6.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.48.0](https://img.shields.io/badge/AppVersion-v0.48.0-informational?style=flat-square)

## Installing the Chart

Expand Down
5 changes: 4 additions & 1 deletion charts/perses/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ data:
cookie:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.config.security.authentication }}
authentication:
{{- toYaml . | nindent 8 }}
{{- end }}
database:
{{- with .Values.config.database.file }}
file:
Expand Down
143 changes: 142 additions & 1 deletion charts/perses/values.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/schema#",
"type": "object",
"title": "Values",
"additionalProperties": false,
Expand Down Expand Up @@ -195,6 +195,147 @@
"disable_sign_up": {
"type": "boolean",
"default": false
},
"providers": {
"type": "object",
"properties": {
"oidc": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"slug_id": {
"type": "string"
},
"name": {
"type": "string"
},
"client_id":{
"type": "string"
},
"client_secret": {
"type": "string"
},
"device_code": {
"type": "object",
"additionalProperties": false,
"properties": {
"client_id": {
"type": "string"
},
"client_secret": {
"type": "string"
}
}
},
"redirect_uri": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
},
"issuer": {
"type": "string"
},
"discovery_url": {
"type": "string"
},
"disable_pkce": {
"type":"boolean",
"default": false
},
"url_params": {
"type": "string"
}
}
}
},
"oauth": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"slug_id": {
"type": "string"
},
"name": {
"type": "string"
},
"client_id": {
"type": "string"
},
"client_secret": {
"type": "string"
},
"device_code": {
"type": "object",
"additionalProperties": false,
"properties": {
"client_id": {
"type": "string"
},
"client_secret": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"client_credentials": {
"type": "object",
"additionalProperties": false,
"properties": {
"client_id": {
"type": "string"
},
"client_secret": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"redirect_url": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
},
"auth_url": {
"type": "string"
},
"token_url": {
"type": "string"
},
"user_infos_url": {
"type": "string"
},
"device_auth_url": {
"type": "string"
},
"custom_login_property": {
"type": "string"
}
}
}
}
}
}
}
}
Expand Down

0 comments on commit 22d6b24

Please sign in to comment.