Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit ab8074a

Browse files
added copyright headers
1 parent 1181713 commit ab8074a

File tree

7 files changed

+38
-10
lines changed

7 files changed

+38
-10
lines changed

test/IdentityModel.OidcClient.Tests/AuthorizeRequestTests.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using FluentAssertions;
1+
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3+
4+
5+
using FluentAssertions;
26
using Xunit;
37

48
namespace IdentityModel.OidcClient.Tests
@@ -19,7 +23,7 @@ public void default_parameters_should_be_used_for_authorize_request()
1923
};
2024

2125
var client = new AuthorizeClient(options);
22-
var parameters = client.CreateParameters("state", "nonce", "code_challenge", null);
26+
var parameters = client.CreateAuthorizeParameters("state", "nonce", "code_challenge", null);
2327

2428
parameters.Should().Contain("client_id", "client_id");
2529
parameters.Should().Contain("scope", "openid");
@@ -54,7 +58,7 @@ public void extra_parameters_should_override_default_parameters()
5458
};
5559

5660
var client = new AuthorizeClient(options);
57-
var parameters = client.CreateParameters("state", "nonce", "code_challenge", extra);
61+
var parameters = client.CreateAuthorizeParameters("state", "nonce", "code_challenge", extra);
5862

5963
parameters.Should().Contain("client_id", "client_id2");
6064
parameters.Should().Contain("scope", "openid extra");
@@ -85,7 +89,7 @@ public void missing_default_parameters_can_be_set_by_extra_parameters()
8589
};
8690

8791
var client = new AuthorizeClient(options);
88-
var parameters = client.CreateParameters("state", "nonce", "code_challenge", extra);
92+
var parameters = client.CreateAuthorizeParameters("state", "nonce", "code_challenge", extra);
8993

9094
parameters.Should().Contain("client_id", "client_id2");
9195
parameters.Should().Contain("scope", "openid extra");

test/IdentityModel.OidcClient.Tests/CodeFlowResponseTests.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using FluentAssertions;
1+
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3+
4+
5+
using FluentAssertions;
26
using IdentityModel.Jwk;
37
using IdentityModel.OidcClient.Tests.Infrastructure;
48
using Newtonsoft.Json;

test/IdentityModel.OidcClient.Tests/CommonResponseTests.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using FluentAssertions;
1+
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3+
4+
5+
using FluentAssertions;
26
using IdentityModel.Jwk;
37
using System.Threading.Tasks;
48
using Xunit;

test/IdentityModel.OidcClient.Tests/ConfigurationTests.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using FluentAssertions;
1+
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3+
4+
5+
using FluentAssertions;
26
using IdentityModel.Jwk;
37
using IdentityModel.OidcClient.Tests.Infrastructure;
48
using System;

test/IdentityModel.OidcClient.Tests/HybridFlowResponseTests.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using FluentAssertions;
1+
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3+
4+
5+
using FluentAssertions;
26
using IdentityModel.Jwk;
37
using IdentityModel.OidcClient.Tests.Infrastructure;
48
using Newtonsoft.Json;

test/IdentityModel.OidcClient.Tests/Infrastructure/Crypto.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using Microsoft.IdentityModel.Tokens;
1+
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3+
4+
5+
using Microsoft.IdentityModel.Tokens;
26
using System;
37
using System.Collections.Generic;
48
using System.IdentityModel.Tokens.Jwt;

test/IdentityModel.OidcClient.Tests/Infrastructure/NetworkHandler.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3+
4+
5+
using System;
26
using System.Net;
37
using System.Net.Http;
48
using System.Threading;

0 commit comments

Comments
 (0)