-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #278: Provide all material to support multiple authentication scheme #359
base: development
Are you sure you want to change the base?
Conversation
/// Retrieves all supported <see cref="AuthenticationSchemeKind" /> by the CDP4-COMET datasource | ||
/// </summary> | ||
/// <returns>An awaitable <see cref="Task{TResult}"/> that contains the value of the queried <see cref="AuthenticationSchemeResponse" /></returns> | ||
public async Task<AuthenticationSchemeResponse> QueryAvailableAuthenticationScheme() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add this method to the ISession
interface
// To test this, please enable one by one authentication scheme on the CDP4 COMET Server | ||
public async Task VerifyCanAuthenticateWithMultipleSchemeAtDalLevel() | ||
{ | ||
var authentitcatioCredentials = new Credentials(new Uri("http://localhost:5000/")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose a small typo
CDP4Dal/Session.cs
Outdated
/// <exception cref="InvalidOperationException">If all required <see cref="Credentials"/> informations are not provided</exception> | ||
public async Task RefreshAuthenticationInformation() | ||
{ | ||
if (this.Credentials.IsFullyInitiliazed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo IsFullyInitiliazed => IsFullyInitialized
CDP4WspDal/CDP4WspDal.csproj
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was removing WSPDal on purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, agreed with @samatstariongroup
CDP4ServicesDal/CdpServicesDal.cs
Outdated
@@ -881,6 +887,11 @@ public override async Task<IEnumerable<Thing>> Open(Credentials credentials, Can | |||
throw new ArgumentNullException(nameof(credentials.Uri), $"The Credentials URI may not be null"); | |||
} | |||
|
|||
if (!credentials.IsFullyInitiliazed) | |||
{ | |||
throw new ArgumentException("The Credentials is not be fully initiliazed"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same typo on initiliazed
|
Prerequisites
Description
Fix #278