Skip to content

Commit

Permalink
deploy oauth config file
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiahstroud committed Jul 25, 2024
1 parent ad4e76b commit 5312e32
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,10 @@ on:

jobs:
deploy:
uses: scientist-softserv/actions/.github/workflows/[email protected]
secrets: inherit
runs-on: ubuntu-latest
steps:
- name: "Load secrets into OAuth config"
run: envsubst < api/config/oauth.tmpl.yml > api/config/oauth.yml;
- name: "Do deploy"
uses: scientist-softserv/actions/.github/workflows/[email protected]
secrets: inherit
28 changes: 28 additions & 0 deletions api/config/oauth.tmpl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
oauth:
cas:
client_id: $CAS_CLIENT_ID
client_secret: $CAS_CLIENT_SECRET
descriptive_name: Princeton CAS
host: fed.princeton.edu
protocol: https
email_key: 'mail'
name_key: 'displayname'
nickname_key: 'givenname'
uid_key: 'campusid'
# WARN: The values below are placeholders
endpoints:
authorize:
uri: '/cas/login'
method: 'GET'
query:
another: 'param'
token:
uri: '/oauth/token'
method: 'POST'
query:
another: 'param'
userinfo:
uri: '/api/v1/me'
method: 'GET'
query:
another: 'param'

0 comments on commit 5312e32

Please sign in to comment.