Skip to content
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

[Client bug]: The SDK has no implementation for authentication sign-in preferences #752

Closed
ErikdeWilde opened this issue Nov 1, 2023 · 2 comments · Fixed by #790
Closed

Comments

@ErikdeWilde
Copy link

Describe the bug
The SDK has no implementation for authentication sign-in preferences, there is no on SignInPreferencesRequestBuilder the AuthenticationRequestBuilder to create a get or update request.

The model does exist:
Microsoft.Graph.Beta.Models.SignInPreferences

so for now I replace the last segment of the url...

To Reproduce
var request = _microsoftGraphClient
.Users[identifier]
.Authentication
.MicrosoftAuthenticatorMethods
.ToGetRequestInformation();

// signInPreferences aren't in the sdk, get any request with the same url and replace it with signInPreferences
request.URI = new Uri(request.URI.AbsoluteUri.Replace(request.URI.AbsoluteUri.Split('/').Last(), "signInPreferences"));

// the model for the signInPreferences is available to parse the result
var result = await request.SendRequest(_microsoftGraphClient, Microsoft.Graph.Beta.Models.SignInPreferences.CreateFromDiscriminatorValue);

@andrueastman
Copy link
Member

Transfering to the beta repo

@andrueastman andrueastman transferred this issue from microsoftgraph/msgraph-sdk-dotnet Nov 2, 2023
@andrueastman
Copy link
Member

Depends on the resolution of microsoftgraph/msgraph-metadata#479

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants