forked from ManifoldScholar/manifold
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad4e76b
commit 5312e32
Showing
2 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |