Skip to content

Commit c51f88e

Browse files
authored
Merge pull request #1 from dozer75/add-disable-access-token-caching-configuration
- Update to .NET 8 - Add disable access token caching configuration
2 parents 1ecba3b + 2b876b0 commit c51f88e

37 files changed

+183
-158
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ dotnet_diagnostic.ca1819.severity = none
156156
dotnet_diagnostic.CA1848.severity = silent
157157

158158
# CA2007: Consider calling ConfigureAwait on the awaited task
159-
dotnet_diagnostic.CA2007.severity = suggestion
159+
dotnet_diagnostic.CA2007.severity = none
160160

161161
# IDE0058: Expression value is never used
162162
dotnet_diagnostic.IDE0058.severity = none

.github/workflows/master-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
steps:
2323
- name: Checkout source
2424
uses: actions/checkout@v3
25-
- name: Setup .NET 7.0.x
25+
- name: Setup .NET 8.0.x
2626
uses: actions/setup-dotnet@v3
2727
with:
28-
dotnet-version: '7.0.x'
28+
dotnet-version: '8.0.x'
2929
- name: Restore solution
3030
run: dotnet restore
3131
- name: Build solution

.github/workflows/master-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
echo "VERSION=${VERSION#v}" >> $GITHUB_ENV
1717
- name: Checkout source
1818
uses: actions/checkout@v3
19-
- name: Setup .NET 7.0.x
19+
- name: Setup .NET 8.0.x
2020
uses: actions/setup-dotnet@v3
2121
with:
22-
dotnet-version: '7.0.x'
22+
dotnet-version: '8.0.x'
2323
- name: Restore solution
2424
run: dotnet restore
2525
- name: Build solution (pre-release)

.github/workflows/master-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
steps:
2020
- name: Checkout source
2121
uses: actions/checkout@v3
22-
- name: Setup .NET 7.0.x
22+
- name: Setup .NET 8.0.x
2323
uses: actions/setup-dotnet@v3
2424
with:
25-
dotnet-version: '7.0.x'
25+
dotnet-version: '8.0.x'
2626
- name: Restore solution
2727
run: dotnet restore
2828
- name: Build solution

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2023 Rune Gulbrandsen
1+
Copyright (c) 2024 Rune Gulbrandsen
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
44
and associated documentation files (the "Software"), to deal in the Software without

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,14 @@ Authentication using OAuth2.
7575

7676
##### Client credentials
7777

78-
Using OAuth2 client credentials, all settings except `Scope` is required.
78+
Using OAuth2 client credentials, all settings except `DisableTokenCache` and `Scope` is required.
7979

8080
```
8181
"<section name>": {
8282
"AuthenticationProvider": "OAuth2",
8383
"OAuth2": {
8484
"AuthorizationEndpoint": "<OAuth2 token endpoint>",
85+
"DisableTokenCache": false,
8586
"GrantType": "ClientCredentials",
8687
"Scope": "<Optional scopes separated by space>",
8788
"ClientCredentials": {

src/HttpClientAuthentication/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2023 Rune Gulbrandsen.
1+
// Copyright © 2024 Rune Gulbrandsen.
22
// All rights reserved. Licensed under the MIT License; see LICENSE.txt.
33

44
using System.Runtime.CompilerServices;

src/HttpClientAuthentication/Configuration/ApiKeyConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2023 Rune Gulbrandsen.
1+
// Copyright © 2024 Rune Gulbrandsen.
22
// All rights reserved. Licensed under the MIT License; see LICENSE.txt.
33

44
namespace KISS.HttpClientAuthentication.Configuration

src/HttpClientAuthentication/Configuration/BasicConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2023 Rune Gulbrandsen.
1+
// Copyright © 2024 Rune Gulbrandsen.
22
// All rights reserved. Licensed under the MIT License; see LICENSE.txt.
33

44
namespace KISS.HttpClientAuthentication.Configuration

src/HttpClientAuthentication/Configuration/ClientCredentialsConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2023 Rune Gulbrandsen.
1+
// Copyright © 2024 Rune Gulbrandsen.
22
// All rights reserved. Licensed under the MIT License; see LICENSE.txt.
33

44
namespace KISS.HttpClientAuthentication.Configuration

0 commit comments

Comments
 (0)