azure-ad-b2c

Not prompting change password on First SignIn

一世执手 提交于 2020-04-17 22:04:20
问题 I am using Graph API to create user and this is how i am creating a user let payload = { "displayName": value.data.displayName, "identities": [ { "signInType": "userName", "issuer": "{tenantName}.onmicrosoft.com", "issuerAssignedId": value.data.memberNumber }, { "signInType": "emailAddress", "issuer": "{tenantName}.onmicrosoft.com", "issuerAssignedId": value.data.email } ], "passwordProfile": { "forceChangePasswordNextSignIn": true, "password": value.password }, "passwordPolicies":

How to get user profile details in azure ad b2c

冷暖自知 提交于 2020-04-16 06:44:26
问题 I'm using Azure AD B2C authentication for my MVC web application. I have developed the sign-in part of the project. Now I want to get the user's details when a user logs into the web app. I have seen some of the articles which explain how to edit user details. But I couldn't find anything related to get user profile data. Please Help. This is my SignIn action. public ActionResult SignIn() { if (!Request.IsAuthenticated) { var authenticationManager = HttpContext.GetOwinContext().Authentication

How to get user profile details in azure ad b2c

梦想的初衷 提交于 2020-04-16 06:44:10
问题 I'm using Azure AD B2C authentication for my MVC web application. I have developed the sign-in part of the project. Now I want to get the user's details when a user logs into the web app. I have seen some of the articles which explain how to edit user details. But I couldn't find anything related to get user profile data. Please Help. This is my SignIn action. public ActionResult SignIn() { if (!Request.IsAuthenticated) { var authenticationManager = HttpContext.GetOwinContext().Authentication

Azure AD B2C Audit Logs - Graph API - query options not working

可紊 提交于 2020-04-16 01:58:06
问题 I am trying to retrieve the Azure AD user sign-in audit logs for our tenant. For this, I am using [Microsoft’s graph APIs][1] https://graph.microsoft.com/v1.0/auditLogs/signIns?$filter=createdDateTime ge 2019-10-08T09:00:00.0000000 and createdDateTime le 2019-10-08T09:12:00.0000000 In the above-given example, I am trying to filter the logs based on a query option, $filter where I am trying to retrieve the records based on createDateTime , from Date 2019-10-08T09:00:00.0000000 and to date 2019

Validating the token recieved from azure ad b2c using the Values from “jwks_uri” endpoint

倾然丶 夕夏残阳落幕 提交于 2020-04-10 15:05:13
问题 I am getting the azure ad access token from an Utility Service and I want to validate it using some standard token validation parameters which includes issuer, audience and issuer signing key.Now I have the issuer and audience but I don't have the issuer signing key. However I have extracted the key information using the jwks_uri end point of azure ad b2c which gives me a json output as { "keys": [ { "kid": "X5eXk4xyojNFum1kl2Ytv8dlNP4......", "nbf": 1493763266, "use": "sig", "kty": "RSA", "e

Customising the message/error text in Azure AD B2C custom policies

不打扰是莪最后的温柔 提交于 2020-03-25 18:21:48
问题 I want to Customizing the message/error text in Azure AD B2C custom policie,Not getting a proper way to do this.has anyone done this in their B2C custom Policies I want to customize the Verification is necessary. Please click Send button. test which is under " ver_intro_msg " id , I added following to Building Block. Let me know where it goes wrong <ContentDefinition Id="api.localaccountsignup"> <Metadata> <Item Key="DisplayName">Local account sign up page</Item> </Metadata>

Unable to obtain configuration from Azure AD B2C

允我心安 提交于 2020-03-25 12:31:08
问题 Following this tutorial by Microsoft, the JavaScript application is not able to access the API protected by Azure AD B2C. The application is able to login/authenticate, but when clicking the Call Web API button, the following message is output onto the page: Web APi returned: "AuthenticationFailed: IDX10803: Unable to obtain configuration from: 'https://b2c-tenant-name.microsoftonline.com/tfp/b2c-tenant-name.onmicrosoft.com/B2C_1_signupsignin/v2.0/.well-known/openid-configuration'." How can

Define application specific user roles in Azure AD B2C

落花浮王杯 提交于 2020-03-21 19:38:46
问题 I would like to add Authorization to a web API written in Asp.Net Core using Azure AD B2C. I already have the Authentication part working, and now I would like to add "Roles" to my application, like "Administrators", and probably in the future more specific roles. I've seen samples with Azure AD adding "Application roles", but can't find anything for AD B2C. There doesn't seem to be anything in the Azure Portal, neither anything in the documentation. Is it possible to add custom application

How do I use Owin Katana Logger

∥☆過路亽.° 提交于 2020-02-25 03:07:06
问题 I see in files like this within the Microsoft Owin projects a logger is being called https://github.com/aspnet/AspNetKatana/blob/dev/src/Microsoft.Owin.Security.OpenIdConnect/OpenidConnectAuthenticationHandler.cs Can anyone tell me how I activate it to actually start writing logs somewhere that I can read? 回答1: By default Katana uses the TraceSource mechanism in .NET for logging. Add the following snippet to your config file to enable logging to a file: <system.diagnostics> <trace autoflush=

microsoft graph rest api beta: application created by api in azure ad b2c is not valid

只谈情不闲聊 提交于 2020-02-24 18:50:09
问题 i'm trying to create ad application using beta api by following this document: https://docs.microsoft.com/en-us/graph/api/application-post-applications?view=graph-rest-beta&tabs=http the application can be successfully created in Azure AD B2C ( not Azure Active Directory) as expected. the issue is when i'm trying to open this app from portal, the page just keeps loading while the app information never shows. i can see there's an error from browser dev tool: The following request returns 404