Skip to content

Commit 82749df

Browse files
committed
updates for packing
1 parent bd27e1e commit 82749df

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

CodeWorks.Auth.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<ItemGroup>
2525
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.3" />
2626
<PackageReference Include="Microsoft.AspNetCore.Identity" Version="2.3.1" />
27-
<None Include="\readme.md" Pack="true" PackagePath="\"/>
27+
<None Include="./readme.md" Pack="true" PackagePath="\"/>
2828
</ItemGroup>
2929

3030
</Project>

Services/OAuthService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,15 @@ private AuthResult<TUser> GenerateUserToken(TUser existingUser)
117117

118118

119119

120-
public async Task<string> GenerateOAuthStateAsync(string provider)
120+
public virtual async Task<string> GenerateOAuthStateAsync(string provider)
121121
{
122122
// Generate secure state token to prevent CSRF
123123
var state = Convert.ToBase64String(RandomNumberGenerator.GetBytes(32));
124124
// Store state with expiration (implement in token store)
125125
return state;
126126
}
127127

128-
public async Task<bool> ValidateOAuthStateAsync(string state)
128+
public virtual async Task<bool> ValidateOAuthStateAsync(string state)
129129
{
130130
// Validate and consume state token
131131
// Implement in token store

0 commit comments

Comments
 (0)