Skip to content

Commit

Permalink
Merge branch 'master' into add-show_as_button
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck authored Sep 25, 2023
2 parents f5ffd16 + b90ab69 commit 260a67b
Show file tree
Hide file tree
Showing 17 changed files with 592 additions and 63 deletions.
98 changes: 98 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: Build and Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
AUTH0_AUTHENTICATION_API_URL: '${{ vars.AUTH0_AUTHENTICATION_API_URL }}'
AUTH0_CLIENT_ID: '${{ vars.AUTH0_CLIENT_ID }}'
AUTH0_CLIENT_SECRET: '${{ secrets.AUTH0_CLIENT_SECRET }}'
AUTH0_HS256_CLIENT_ID: '${{ vars.AUTH0_HS256_CLIENT_ID }}'
AUTH0_HS256_CLIENT_SECRET: '${{ secrets.AUTH0_HS256_CLIENT_SECRET }}'
AUTH0_MANAGEMENT_API_AUDIENCE: '${{ vars.AUTH0_MANAGEMENT_API_AUDIENCE }}'
AUTH0_MANAGEMENT_API_CLIENT_ID: '${{ vars.AUTH0_MANAGEMENT_API_CLIENT_ID }}'
AUTH0_MANAGEMENT_API_CLIENT_SECRET: '${{ secrets.AUTH0_MANAGEMENT_API_CLIENT_SECRET }}'
AUTH0_MANAGEMENT_API_URL: '${{ vars.AUTH0_MANAGEMENT_API_URL }}'
AUTH0_PASSWORDLESSDEMO_AUTHENTICATION_API_URL: '${{ vars.AUTH0_PASSWORDLESSDEMO_AUTHENTICATION_API_URL }}'
AUTH0_PASSWORDLESSDEMO_CLIENT_ID: '${{ vars.AUTH0_PASSWORDLESSDEMO_CLIENT_ID }}'
BRUCKE_AUTHENTICATION_API_URL: '${{ vars.BRUCKE_AUTHENTICATION_API_URL }}'
BRUCKE_MANAGEMENT_API_AUDIENCE: '${{ vars.BRUCKE_MANAGEMENT_API_AUDIENCE }}'
BRUCKE_MANAGEMENT_API_CLIENT_ID: '${{ vars.BRUCKE_MANAGEMENT_API_CLIENT_ID }}'
BRUCKE_MANAGEMENT_API_CLIENT_SECRET: '${{ secrets.BRUCKE_MANAGEMENT_API_CLIENT_SECRET }}'
BRUCKE_MANAGEMENT_API_URL: '${{ vars.BRUCKE_MANAGEMENT_API_URL }}'
BuildConfiguration: '${{ vars.BuildConfiguration }}'
CACHE_KEY: '${{ github.ref }}-${{ github.run_id }}-${{ github.run_attempt }}'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Save build artifacts
uses: actions/cache/save@v3
with:
path: .
key: ${{ env.CACHE_KEY }}
test_core:
needs: build
runs-on: ubuntu-latest
name: Test Auth0.Core
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore build artifacts
uses: actions/cache/restore@v3
with:
path: .
key: ${{ env.CACHE_KEY }}
- name: Test Core
run: dotnet test tests/Auth0.Core.UnitTests/Auth0.Core.UnitTests.csproj
test_auth:
needs: test_core
runs-on: ubuntu-latest
name: Test Auth0.AuthenticationApi
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore build artifacts
uses: actions/cache/restore@v3
with:
path: .
key: ${{ env.CACHE_KEY }}
- name: Test Authentication API
run: dotnet test tests/Auth0.AuthenticationApi.IntegrationTests/Auth0.AuthenticationApi.IntegrationTests.csproj
test_management:
needs: test_auth
runs-on: ubuntu-latest
name: Test Auth0.ManagementApi
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore build artifacts
uses: actions/cache/restore@v3
with:
path: .
key: ${{ env.CACHE_KEY }}
- name: Test Management API
run: dotnet test tests/Auth0.ManagementApi.IntegrationTests/Auth0.ManagementApi.IntegrationTests.csproj
65 changes: 65 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Publish Release

on:
workflow_dispatch:
release:
types:
- published

env:
NuGetDirectory: ${{ github.workspace}}/nuget

defaults:
run:
shell: pwsh

permissions:
contents: read
packages: write

jobs:
create_nuget:
name: 'Create NuGet'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- run: dotnet pack src/Auth0.Core/Auth0.Core.csproj --configuration Release --output ${{ env.NuGetDirectory }}
- run: dotnet pack src/Auth0.AuthenticationApi/Auth0.AuthenticationApi.csproj --configuration Release --output ${{ env.NuGetDirectory }}
- run: dotnet pack src/Auth0.ManagementApi/Auth0.ManagementApi.csproj --configuration Release --output ${{ env.NuGetDirectory }}

- uses: actions/upload-artifact@v3
with:
name: nuget
if-no-files-found: error
retention-days: 7
path: ${{ env.NuGetDirectory }}/*.nupkg

publish_nuget:
name: 'Publish NuGet'
environment: release
runs-on: ubuntu-latest
needs: [ create_nuget ]
steps:
- uses: actions/download-artifact@v3
with:
name: nuget
path: ${{ env.NuGetDirectory }}

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Publish NuGet package
run: |
foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## [7.22.3](https://github.com/auth0/auth0.net/tree/7.22.3) (2023-08-29)
[Full Changelog](https://github.com/auth0/auth0.net/compare/7.22.2...7.22.3)

**Changed**
- added generic get/set metadata methods on UserBase [\#646](https://github.com/auth0/auth0.net/pull/646) ([MichaelPruefer](https://github.com/MichaelPruefer))

## [7.22.2](https://github.com/auth0/auth0.net/tree/7.22.2) (2023-08-14)
[Full Changelog](https://github.com/auth0/auth0.net/compare/7.22.1...7.22.2)

Expand Down
45 changes: 0 additions & 45 deletions azure-pipelines.yml

This file was deleted.

2 changes: 1 addition & 1 deletion build/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</PropertyGroup>
<PropertyGroup>
<LangVersion>7.1</LangVersion>
<Version>7.22.2</Version>
<Version>7.22.3</Version>
<Suffix/>
</PropertyGroup>
<PropertyGroup>
Expand Down
12 changes: 12 additions & 0 deletions docs/api/Auth0.ManagementApi.Models.User.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,18 @@ <h5>Inherited Members</h5>
<div>
<a class="xref" href="Auth0.ManagementApi.Models.UserBase.html#Auth0_ManagementApi_Models_UserBase_Blocked">UserBase.Blocked</a>
</div>
<div>
<a class="xref" href="Auth0.ManagementApi.Models.UserBase.html#Auth0_ManagementApi_Models_UserBase_GetAppMetadata__1">UserBase.GetAppMetadata&lt;T&gt;()</a>
</div>
<div>
<a class="xref" href="Auth0.ManagementApi.Models.UserBase.html#Auth0_ManagementApi_Models_UserBase_GetUserMetadata__1">UserBase.GetUserMetadata&lt;T&gt;()</a>
</div>
<div>
<a class="xref" href="Auth0.ManagementApi.Models.UserBase.html#Auth0_ManagementApi_Models_UserBase_SetAppMetadata__1___0_">UserBase.SetAppMetadata&lt;T&gt;(T)</a>
</div>
<div>
<a class="xref" href="Auth0.ManagementApi.Models.UserBase.html#Auth0_ManagementApi_Models_UserBase_SetUserMetadata__1___0_">UserBase.SetUserMetadata&lt;T&gt;(T)</a>
</div>
<div>
<span class="xref">System.Object.Equals(System.Object)</span>
</div>
Expand Down
Loading

0 comments on commit 260a67b

Please sign in to comment.