Skip to content

Commit 16a3547

Browse files
Update Onshape provider URLs
Update the URLs used by the Onshape provider to resolve #469.
1 parent 2706da7 commit 16a3547

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/AspNet.Security.OAuth.Onshape/OnshapeAuthenticationDefaults.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ public static class OnshapeAuthenticationDefaults
3737
/// <summary>
3838
/// Default value for <see cref="OAuthOptions.AuthorizationEndpoint"/>.
3939
/// </summary>
40-
public const string AuthorizationEndpoint = "https://cad.onshape.com/oauth/authorize";
40+
public const string AuthorizationEndpoint = "https://oauth.onshape.com/oauth/authorize";
4141

4242
/// <summary>
4343
/// Default value for <see cref="OAuthOptions.TokenEndpoint"/>.
4444
/// </summary>
45-
public const string TokenEndpoint = "https://cad.onshape.com/oauth/token";
45+
public const string TokenEndpoint = "https://oauth.onshape.com/oauth/token";
4646

4747
/// <summary>
4848
/// Default value for <see cref="OAuthOptions.UserInformationEndpoint"/>.
4949
/// </summary>
50-
public const string UserInformationEndpoint = "https://cad.onshape.com/api/users/session";
50+
public const string UserInformationEndpoint = "https://cad.onshape.com/api/users/sessioninfo";
5151
}
5252
}

test/AspNet.Security.OAuth.Providers.Tests/Onshape/bundle.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://raw.githubusercontent.com/justeat/httpclient-interception/master/src/HttpClientInterception/Bundles/http-request-bundle-schema.json",
33
"items": [
44
{
5-
"uri": "https://cad.onshape.com/oauth/token",
5+
"uri": "https://oauth.onshape.com/oauth/token",
66
"method": "POST",
77
"contentFormat": "json",
88
"contentJson": {
@@ -13,7 +13,7 @@
1313
}
1414
},
1515
{
16-
"uri": "https://cad.onshape.com/api/users/session",
16+
"uri": "https://cad.onshape.com/api/users/sessioninfo",
1717
"contentFormat": "json",
1818
"contentJson": {
1919
"id": "my-id",

0 commit comments

Comments
 (0)