Skip to content

Commit

Permalink
refactor: change dcc admin prefix to PROGRAMSERVICE
Browse files Browse the repository at this point in the history
  • Loading branch information
joneubank committed Jul 30, 2019
1 parent 2328617 commit ad5c388
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ego-token-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const PERMISSIONS: {
ADMIN: 'ADMIN',
DENY: 'DENY'
}
const DCC_PREFIX = 'program-service.WRITE'
const DCC_PREFIX = 'PROGRAMSERVICE.WRITE'
const RDPC_PREFIX = 'RDPC-'
const PROGRAM_PREFIX = 'PROGRAM-'
const PROGRAM_DATA_PREFIX = 'PROGRAMDATA-'
Expand Down
4 changes: 2 additions & 2 deletions test/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ const PROGRAM_ADMIN = `eyJhbGciOiJSUzI1NiJ9.ewogICJpYXQiOiAxNTYyNjc5MzY3LAogICJl
* "song-argo-qa.WRITE"
* "program-service.WRITE"
**/
const DCC_USER = `eyJhbGciOiJSUzI1NiJ9.ewogICJpYXQiOiAxNTYyNjg0NDU4LAogICJleHAiOiAyMDYyNzcwODU4LAogICJzdWIiOiAiN2VlMWRkODctNTUzMC00MzA0LWIzYjItZTZiYzU5M2FmYjM3IiwKICAiaXNzIjogImVnbyIsCiAgImF1ZCI6IFtdLAogICJqdGkiOiAiYWI0NTI0MjUtYjJiOC00MzExLWFmOTAtZGFkNzhjYjM0YTUzIiwKICAiY29udGV4dCI6IHsKICAgICJzY29wZSI6IFsKICAgICAgInNjb3JlLWFyZ28tcWEuV1JJVEUiLAogICAgICAic29uZy1hcmdvLXFhLldSSVRFIiwKICAgICAgInByb2dyYW0tc2VydmljZS5XUklURSIKICAgIF0sCiAgICAidXNlciI6IHsKICAgICAgIm5hbWUiOiAib2ljcnRlc3R1c2VyQGdtYWlsLmNvbSIsCiAgICAgICJlbWFpbCI6ICJvaWNydGVzdHVz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kVEIiwiZmlyc3ROYW1lIjoiT0lDUiIsImxhc3ROYW1lIjoiVGVzdGVyIiwiY3JlYXRlZEF0IjoxNTYyNjIzOTA4NTYzLCJsYXN0TG9naW4iOjE1NjI2ODQ0NTg0MDksInByZWZlcnJlZExhbmd1YWdlIjpudWxsLCJ0eXBlIjoiVVNFUiIsInBlcm1pc3Npb25zIjpbInNjb3JlLWFyZ28tcWEuV1JJVEUiLCJQUk9HUkFNU0VSVklDRS5XUklURSIsInNvbmctYXJnby1xYS5XUklURSJdfX0sInNjb3BlIjpbInNjb3JlLWFyZ28tcWEuV1JJVEUiLCJzb25nLWFyZ28tcWEuV1JJVEUiLCJQUk9HUkFNU0VSVklDRS5XUklURSJdfQ.1JAYtB1HUvZyvNNoUnp14GhTHrBvT67NlMUlBqqL_Rg'

const BOGUS_PROGRAM_ID = 'BOGUS_PROGRAM'

Expand Down

0 comments on commit ad5c388

Please sign in to comment.