Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: asgardeo/asgardeo-auth-js-core
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.3
Choose a base ref
...
head repository: asgardeo/asgardeo-auth-js-core
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Apr 5, 2022

  1. Copy the full SHA
    aaa69df View commit details

Commits on Apr 6, 2022

  1. Merge pull request #197 from yathindrakodithuwakku/fix-baseurl-with-w…

    …ellknown-config
    
    fix base url with well known config
    brionmario authored Apr 6, 2022
    Copy the full SHA
    a3f4607 View commit details
  2. [Asgardeo Release] [GitHub Actions] [Release v2.0.4] Bump version

    asgardeo-github-bot committed Apr 6, 2022
    Copy the full SHA
    2c2a4ff View commit details
  3. Copy the full SHA
    a3d6aef View commit details
  4. Merge pull request #198 from yathindrakodithuwakku/fix-baseurl-with-w…

    …ellknown-config
    
    fix ts suggestions for the sdk authconfig
    thivi authored Apr 6, 2022
    Copy the full SHA
    69f709a View commit details

Commits on Apr 7, 2022

  1. [Asgardeo Release] [GitHub Actions] [Release v2.0.5] Bump version

    asgardeo-github-bot committed Apr 7, 2022
    Copy the full SHA
    4d04f4b View commit details

Commits on Apr 11, 2022

  1. Copy the full SHA
    69231c7 View commit details
  2. Merge pull request #200 from thivi/master

    Remove data layer interface and expose data layer class
    thivi authored Apr 11, 2022
    Copy the full SHA
    8957fb8 View commit details
  3. Copy the full SHA
    e5beee3 View commit details
  4. Merge pull request #201 from Suvink/suvink-patch-4

    Remove duplicates in documentation
    thivi authored Apr 11, 2022
    Copy the full SHA
    c434d5e View commit details
  5. [Asgardeo Release] [GitHub Actions] [Release v2.0.6] Bump version

    asgardeo-github-bot committed Apr 11, 2022
    Copy the full SHA
    8c95910 View commit details

Commits on Apr 21, 2022

  1. Copy the full SHA
    076cf37 View commit details
  2. Copy the full SHA
    6ecb917 View commit details
  3. Copy the full SHA
    5d93e1c View commit details
  4. improve typo

    yathindrak committed Apr 21, 2022
    Copy the full SHA
    2332248 View commit details
  5. Merge pull request #202 from yathindrakodithuwakku/handle-nbf-claim-r…

    …ejection-error
    
    Handle nbf claim rejection error
    brionmario authored Apr 21, 2022
    Copy the full SHA
    2896686 View commit details
  6. [Asgardeo Release] [GitHub Actions] [Release v2.0.7] Bump version

    asgardeo-github-bot committed Apr 21, 2022
    Copy the full SHA
    5edffce View commit details

Commits on Apr 26, 2022

  1. Copy the full SHA
    c63dab6 View commit details
  2. fix snake cased keys

    yathindrak committed Apr 26, 2022
    Copy the full SHA
    fbf76f5 View commit details
  3. Merge pull request #203 from yathindrakodithuwakku/fix-duplicates-aut…

    …horize-search-params
    
    Fix duplicates in authorize search params
    thivi authored Apr 26, 2022
    Copy the full SHA
    273d067 View commit details

Commits on Apr 27, 2022

  1. [Asgardeo Release] [GitHub Actions] [Release v2.0.8] Bump version

    asgardeo-github-bot committed Apr 27, 2022
    Copy the full SHA
    f4ee271 View commit details

Commits on Apr 29, 2022

  1. Copy the full SHA
    a565767 View commit details
  2. Copy the full SHA
    57363f9 View commit details
  3. Merge pull request #204 from yathindrakodithuwakku/handle-signout-suc…

    …cessful
    
    Handle signout successful action
    thivi authored Apr 29, 2022
    Copy the full SHA
    5dfdcdd View commit details

Commits on May 2, 2022

  1. Copy the full SHA
    eaba16d View commit details

Commits on May 3, 2022

  1. Merge pull request #205 from yathindrakodithuwakku/fix-clear-user-ses…

    …sion
    
    Replace handleSignOutSuccessful with clearUserSessionData
    yasinmiran authored May 3, 2022
    Copy the full SHA
    ed1ba7b View commit details
  2. [Asgardeo Release] [GitHub Actions] [Release v2.0.9] Bump version

    asgardeo-github-bot committed May 3, 2022
    Copy the full SHA
    8b77764 View commit details

Commits on May 27, 2022

  1. Copy the full SHA
    efd7151 View commit details
  2. Merge pull request #206 from yathindrakodithuwakku/make-data-layer-ex…

    …tensible
    
    Make persistence layer extensible
    yasinmiran authored May 27, 2022
    Copy the full SHA
    9dbfd55 View commit details
  3. [Asgardeo Release] [GitHub Actions] [Release v2.0.10] Bump version

    asgardeo-github-bot committed May 27, 2022
    Copy the full SHA
    6191fe4 View commit details

Commits on May 30, 2022

  1. Copy the full SHA
    4c3b53d View commit details
  2. Copy the full SHA
    0069638 View commit details
  3. Merge pull request #207 from yathindrakodithuwakku/manage-custom-data…

    …-in-persistence
    
    Manage custom data in persistence
    yasinmiran authored May 30, 2022
    Copy the full SHA
    72f94a3 View commit details
  4. [Asgardeo Release] [GitHub Actions] [Release v2.0.11] Bump version

    asgardeo-github-bot committed May 30, 2022
    Copy the full SHA
    ef409c2 View commit details

Commits on Jun 10, 2022

  1. Expose crypto helper

    yathindrak committed Jun 10, 2022
    Copy the full SHA
    043a1ba View commit details
  2. Copy the full SHA
    84dd3ce View commit details

Commits on Jun 13, 2022

  1. Update README.md

    Co-authored-by: Yasin <wytm97@protonmail.com>
    yathindrak and yasinmiran authored Jun 13, 2022
    Copy the full SHA
    6266527 View commit details
  2. Merge pull request #209 from yathindrakodithuwakku/expose-crypto-helper

    Expose crypto helper utils
    yasinmiran authored Jun 13, 2022
    Copy the full SHA
    63e4001 View commit details
  3. [Asgardeo Release] [GitHub Actions] [Release v2.0.12] Bump version

    asgardeo-github-bot committed Jun 13, 2022
    Copy the full SHA
    a4b084a View commit details

Commits on Jun 27, 2022

  1. Copy the full SHA
    03ac967 View commit details

Commits on Jun 29, 2022

  1. Merge pull request #212 from nipunsampath/master

    Remove redundant signOut methods.
    thivi authored Jun 29, 2022
    Copy the full SHA
    b7fc282 View commit details

Commits on Jul 26, 2022

  1. [Asgardeo Release] [GitHub Actions] [Release v2.0.13] Bump version

    asgardeo-github-bot committed Jul 26, 2022
    Copy the full SHA
    56b6b3d View commit details

Commits on Aug 3, 2022

  1. Copy the full SHA
    e7c6d03 View commit details
  2. Remove redundant error

    thivi committed Aug 3, 2022
    Copy the full SHA
    e8afe46 View commit details
  3. Remove redundant constants

    thivi committed Aug 3, 2022
    Copy the full SHA
    c063c53 View commit details
  4. Merge pull request #213 from thivi/master

    Remove redundant error message
    thivi authored Aug 3, 2022
    Copy the full SHA
    30ff2fa View commit details
  5. [Asgardeo Release] [GitHub Actions] [Release v2.0.14] Bump version

    asgardeo-github-bot committed Aug 3, 2022
    Copy the full SHA
    dfbdc8e View commit details

Commits on Sep 30, 2022

  1. Update README.md

    Rashmini authored Sep 30, 2022
    Copy the full SHA
    55181e1 View commit details
  2. Merge pull request #214 from Rashmini/Rashmini-patch-1

    Update slack link to discord
    VivekVinushanth authored Sep 30, 2022
    Copy the full SHA
    7fedac6 View commit details

Commits on Oct 7, 2022

  1. Copy the full SHA
    c96579e View commit details
Showing with 2,009 additions and 1,367 deletions.
  1. +1 −1 .github/workflows/builder.yml
  2. +102 −52 .github/workflows/notification.yml
  3. +1 −1 .github/workflows/pr-builder.yml
  4. +2 −3 .github/workflows/release-deprecated.yml
  5. +11 −2 .github/workflows/release.yml
  6. +122 −73 README.md
  7. +1 −1 lerna.json
  8. +277 −54 lib/.eslintrc.js
  9. +1 −1 lib/package.json
  10. +9 −29 lib/rollup.config.js
  11. +203 −150 lib/src/client.ts
  12. +4 −3 lib/src/constants/client-config.ts
  13. +7 −7 lib/src/constants/custom-grant-template-tags.ts
  14. +6 −6 lib/src/constants/data.ts
  15. +0 −19 lib/src/constants/environments.ts
  16. +2 −2 lib/src/constants/fetch.ts
  17. +16 −17 lib/src/constants/index.ts
  18. +17 −17 lib/src/constants/oidc-endpoints.ts
  19. +7 −7 lib/src/constants/parameters.ts
  20. +17 −17 lib/src/constants/scopes.ts
  21. +204 −107 lib/src/core/authentication-core.ts
  22. +16 −16 lib/src/core/index.ts
  23. +71 −27 lib/src/data/data-layer.ts
  24. +16 −16 lib/src/data/index.ts
  25. +2 −2 lib/src/exception/exception.ts
  26. +16 −16 lib/src/exception/index.ts
  27. +55 −31 lib/src/helpers/authentication-helper.ts
  28. +36 −26 lib/src/helpers/crypto-helper.ts
  29. +16 −16 lib/src/helpers/index.ts
  30. +16 −16 lib/src/index.ts
  31. +16 −16 lib/src/models/authorization-url.ts
  32. +8 −2 lib/src/models/client-config.ts
  33. +21 −20 lib/src/models/crypto.ts
  34. +16 −16 lib/src/models/custom-grant.ts
  35. +17 −45 lib/src/models/data.ts
  36. +2 −2 lib/src/models/fetch.ts
  37. +16 −16 lib/src/models/id-token.ts
  38. +16 −16 lib/src/models/index.ts
  39. +2 −2 lib/src/models/oidc-provider-meta-data.ts
  40. +26 −16 lib/src/models/token.ts
  41. +16 −16 lib/src/models/user.ts
  42. +18 −16 lib/src/public-api.ts
  43. +14 −12 lib/src/utils/authentication-utils.ts
  44. +16 −16 lib/src/utils/index.ts
  45. +2 −1 lib/tsconfig.json
  46. +18 −0 lib/tsdoc.json
  47. +131 −95 lib/yarn.lock
  48. +2 −0 package.json
  49. +14 −48 pull_request_template.md
  50. +384 −277 yarn.lock
2 changes: 1 addition & 1 deletion .github/workflows/builder.yml
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v2
154 changes: 102 additions & 52 deletions .github/workflows/notification.yml
Original file line number Diff line number Diff line change
@@ -3,50 +3,91 @@ name: Send Notification
on:
issues:
types: [opened]
pull_request:
pull_request_target:
types: [opened]

jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Escape Issue Title
if: ${{github.event.issue}}
id: escapeIssueTitle
env:
TITLE: ${{ github.event.issue.title }}
run: |
export title=$(echo $TITLE | sed "s/'//g" | sed 's/"//g')
echo "issueTitle=$title" >> $GITHUB_OUTPUT
- name: Escape Issue Body
if: ${{github.event.issue}}
id: escapeIssueBody
env:
BODY: ${{ github.event.issue.body }}
run: |
export body=$(echo $BODY | sed "s/'//g" | sed 's/\"//g')
echo "issueBody=$body" >> $GITHUB_OUTPUT
- name: Escape PR Title
if: ${{github.event.pull_request}}
id: escapePRTitle
env:
TITLE: ${{ github.event.pull_request.title }}
run: |
export title=$(echo $TITLE | sed "s/'//g" | sed 's/"//g')
echo "pRTitle=$title" >> $GITHUB_OUTPUT
- name: Escape PR Body
if: ${{github.event.pull_request}}
id: escapePRBody
env:
BODY: ${{ github.event.pull_request.body }}
run: |
export body=$(echo $BODY | sed "s/'//g" | sed 's/\"//g')
echo "pRBody=$body" >> $GITHUB_OUTPUT
- name: Send notification on issue creation
if: ${{github.event.issue}}
run: |
curl --location --request POST '${{secrets.WEBHOOK_CHAT}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"cards": [
{
"header": {
"title": "ISSUE: ${{ github.event.issue.title }}",
"subtitle": "By ${{ github.event.issue.user.login }} in Asgardeo JS SDK repo",
"imageUrl": "https://avatars.githubusercontent.com/u/583231?v=4",
"imageStyle": "IMAGE"
},
"sections": {
"widgets": [
{
"buttons": [
{
"textButton": {
"text": "Open Issue",
"onClick": {
"openLink": {
"url": "${{ github.event.issue.html_url }}"
}
}
}
}
],
"textParagraph": {
"text": "${{ github.event.issue.body }}"
}
}
]
}
}
]
"cardsV2": [
{
"card": {
"header": {
"title": "PR: ${{ steps.escapeIssueTitle.outputs.issueTitle }}",
"subtitle": "By ${{ github.event.issue.user.login }} in ${{ github.event.repository.name }}",
"imageUrl": "https://avatars.githubusercontent.com/u/583231?v=4",
"imageType": "CIRCLE",
"imageAltText": "GitHub Avatar"
},
"sections": [
{
"header": "Issue Details",
"collapsible": false,
"widgets": [
{
"buttonList": {
"buttons": [
{
"text": "Open Issue",
"onClick": {
"openLink": {
"url": "${{ github.event.issue.html_url }}"
}
}
}
]
}
},
{
"textParagraph": {
"text": "${{ steps.escapeIssueBody.outputs.issueBody }}"
}
}
]
}
]
}
}
]
}'
- name: Send notification on pull request creation
@@ -55,32 +96,41 @@ jobs:
curl --location --request POST '${{secrets.WEBHOOK_CHAT}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"cards": [
"cardsV2": [
{
"header": {
"title": "PR: ${{ github.event.pull_request.title }}",
"subtitle": "By ${{ github.event.pull_request.user.login }} in Asgardeo JS SDK Repo",
"imageUrl": "https://avatars.githubusercontent.com/u/583231?v=4",
"imageStyle": "IMAGE"
},
"sections": {
"widgets": [
"card": {
"header": {
"title": "PR: ${{ steps.escapePRTitle.outputs.prTitle }}",
"subtitle": "By ${{ github.event.pull_request.user.login }} in ${{ github.event.repository.name }}",
"imageUrl": "https://avatars.githubusercontent.com/u/583231?v=4",
"imageType": "CIRCLE",
"imageAltText": "GitHub Avatar"
},
"sections": [
{
"buttons": [
"header": "PR Details",
"collapsible": false,
"widgets": [
{
"textButton": {
"text": "Open PR",
"onClick": {
"openLink": {
"url": "${{ github.event.pull_request.html_url }}"
"buttonList": {
"buttons": [
{
"text": "Open PR",
"onClick": {
"openLink": {
"url": "${{ github.event.pull_request.html_url }}"
}
}
}
}
]
}
},
{
"textParagraph": {
"text": "${{ steps.escapePRBody.outputs.pRBody }}",
}
}
],
"textParagraph": {
"text": "${{ github.event.pull_request.body }}"
}
]
}
]
}
2 changes: 1 addition & 1 deletion .github/workflows/pr-builder.yml
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v2
5 changes: 2 additions & 3 deletions .github/workflows/release-deprecated.yml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
@@ -30,7 +30,6 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
cd packages/oidc-js
npm publish --access public
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -35,16 +35,25 @@ jobs:
# The type of runner that the job will run on
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
token: ${{secrets.ASGARDIO_GITHUB_BOT_TOKEN}}
if: github.repository == 'asgardeo/asgardeo-auth-js-sdk'
if: github.repository == 'asgardeo/asgardeo-auth-js-core'

- uses: actions/checkout@v2
if: github.repository != 'asgardeo/asgardeo-auth-js-sdk'
if: github.repository != 'asgardeo/asgardeo-auth-js-core'

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
Loading