-
Notifications
You must be signed in to change notification settings - Fork 16
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
Showing
7 changed files
with
109 additions
and
96 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"dotnet-ci-version-properties": { | ||
"version": "0.4.0", | ||
"commands": [ | ||
"dotnet-ci-version-properties" | ||
] | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,17 +1,54 @@ | ||
name: Build and test | ||
on: | ||
pull_request: | ||
push: | ||
branches: master | ||
jobs: | ||
test: | ||
name: Build and test | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: Brightspace/third-party-actions@actions/checkout | ||
- uses: Brightspace/third-party-actions@actions/setup-dotnet | ||
- name: Unit tests | ||
run: dotnet test -c Release --framework net60 test/D2L.Security.OAuth2.UnitTests/D2L.Security.OAuth2.UnitTests.csproj | ||
- name: Integration tests | ||
run: dotnet test -c Release --framework net60 test/D2L.Security.OAuth2.IntegrationTests/D2L.Security.OAuth2.IntegrationTests.csproj | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: master | ||
tags: | ||
- v* | ||
|
||
env: | ||
VERSION_PREFIX: 12.3.2 | ||
|
||
jobs: | ||
|
||
linux: | ||
name: Build and test (Linux) | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: Brightspace/third-party-actions@actions/checkout | ||
- uses: Brightspace/third-party-actions@actions/setup-dotnet | ||
|
||
- name: Build | ||
run: dotnet build -c Release --framework net60 | ||
|
||
- name: Unit tests | ||
run: dotnet test -c Release --framework net60 --no-build test/D2L.Security.OAuth2.UnitTests/D2L.Security.OAuth2.UnitTests.csproj | ||
- name: Integration tests | ||
run: dotnet test -c Release --framework net60 --no-build test/D2L.Security.OAuth2.IntegrationTests/D2L.Security.OAuth2.IntegrationTests.csproj | ||
|
||
windows: | ||
name: Build and test (Windows) | ||
runs-on: windows-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: Brightspace/third-party-actions@actions/checkout | ||
- uses: Brightspace/third-party-actions@actions/setup-dotnet | ||
|
||
- run: dotnet tool restore | ||
- name: Generate version properties | ||
run: dotnet ci-version-properties --output VersionInfo.props && cat VersionInfo.props | ||
|
||
- name: Build | ||
run: dotnet build -c Release | ||
|
||
- name: Test | ||
run: dotnet test -c Release --no-build | ||
|
||
- name: Archive | ||
uses: Brightspace/third-party-actions@actions/upload-artifact | ||
with: | ||
name: D2L.Security.OAuth2.${{ github.sha }} | ||
path: src/**/*.symbols.nupkg |
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
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
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 |
---|---|---|
@@ -1,38 +1,36 @@ | ||
# D2L.Security.OAuth2 | ||
|
||
[![Build status](https://ci.appveyor.com/api/projects/status/id5byt9yitcek417/branch/master?svg=true)](https://ci.appveyor.com/project/Brightspace/d2l-security-oauth2/branch/master) | ||
|
||
.NET libraries for integrating with Brightspace OAuth 2.0. These libraries implement D2L-specific functionality (like validating access tokens, manipulating scope, etc.) and the `jwt-bearer` grant. Most third-party users should use a cross-platform OAuth 2.0 library of their choosing (see the "Client Libraries" section on [this page](https://oauth.net/code/) for examples.) | ||
|
||
## Libraries | ||
|
||
The libraries in this repository are published in lock-step. It is recommended that you maintain a consistent version number on any of these that you depend on. Mixing versions as of the version 5.0 release is not supported. | ||
|
||
### D2L.Security.OAuth2 | ||
[![NuGet](https://img.shields.io/nuget/v/D2L.Security.OAuth2.svg?maxAge=7200)](https://www.nuget.org/packages/D2L.Security.OAuth2/) | ||
|
||
Core functionality for request validation and token provisioning. | ||
|
||
### D2L.Security.OAuth2.WebApi | ||
[![NuGet](https://img.shields.io/nuget/v/D2L.Security.OAuth2.WebApi.svg?maxAge=7200)](https://www.nuget.org/packages/D2L.Security.OAuth2.WebApi/) | ||
|
||
WebAPI integration in the form of filters/attributes/etc. | ||
|
||
### D2L.Security.OAuth2.TestFramework | ||
[![NuGet](https://img.shields.io/nuget/v/D2L.Security.OAuth2.TestFramework.svg?maxAge=7200)](https://www.nuget.org/packages/D2L.Security.OAuth2.TestFramework/) | ||
|
||
Helper library for writing tests. | ||
|
||
## Contributing | ||
|
||
1. **Fork** the repository. Committing directly against this repository is | ||
highly discouraged. | ||
|
||
2. Make your modifications in a branch, updating and writing new tests. | ||
|
||
3. Ensure that all tests pass | ||
|
||
4. `rebase` your changes against master. *Do not merge*. | ||
|
||
5. Submit a pull request to this repository. Wait for tests to run and someone | ||
to chime in. | ||
# D2L.Security.OAuth2 | ||
|
||
.NET libraries for integrating with Brightspace OAuth 2.0. These libraries implement D2L-specific functionality (like validating access tokens, manipulating scope, etc.) and the `jwt-bearer` grant. Most third-party users should use a cross-platform OAuth 2.0 library of their choosing (see the "Client Libraries" section on [this page](https://oauth.net/code/) for examples.) | ||
|
||
## Libraries | ||
|
||
The libraries in this repository are published in lock-step. It is recommended that you maintain a consistent version number on any of these that you depend on. Mixing versions as of the version 5.0 release is not supported. | ||
|
||
### D2L.Security.OAuth2 | ||
[![NuGet](https://img.shields.io/nuget/v/D2L.Security.OAuth2.svg?maxAge=7200)](https://www.nuget.org/packages/D2L.Security.OAuth2/) | ||
|
||
Core functionality for request validation and token provisioning. | ||
|
||
### D2L.Security.OAuth2.WebApi | ||
[![NuGet](https://img.shields.io/nuget/v/D2L.Security.OAuth2.WebApi.svg?maxAge=7200)](https://www.nuget.org/packages/D2L.Security.OAuth2.WebApi/) | ||
|
||
WebAPI integration in the form of filters/attributes/etc. | ||
|
||
### D2L.Security.OAuth2.TestFramework | ||
[![NuGet](https://img.shields.io/nuget/v/D2L.Security.OAuth2.TestFramework.svg?maxAge=7200)](https://www.nuget.org/packages/D2L.Security.OAuth2.TestFramework/) | ||
|
||
Helper library for writing tests. | ||
|
||
## Contributing | ||
|
||
1. **Fork** the repository. Committing directly against this repository is | ||
highly discouraged. | ||
|
||
2. Make your modifications in a branch, updating and writing new tests. | ||
|
||
3. Ensure that all tests pass | ||
|
||
4. `rebase` your changes against master. *Do not merge*. | ||
|
||
5. Submit a pull request to this repository. Wait for tests to run and someone | ||
to chime in. |
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,5 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<Version>0.0.0-dev</Version> | ||
</PropertyGroup> | ||
</Project> |
This file was deleted.
Oops, something went wrong.