authentication

Blazor using Azure AD authentication allowing anonymous access

≯℡__Kan透↙ 提交于 2021-02-16 09:27:27
问题 I'm currently writing a (Server side) Blazor application that includes the default AzureAD Authentication. This works well for authenticated users - challenging on the entrance ( _Host.cshtml ) file, redirecting and then back once authenticated. I need to have a couple of pages not requiring authentication - I don't want the user being challenged and redirected to Microsoft. What is the correct way to do this? I have experimented with the AllowAnonymousAttribute , the AllowAnonymousToPage

Blazor using Azure AD authentication allowing anonymous access

不打扰是莪最后的温柔 提交于 2021-02-16 09:27:06
问题 I'm currently writing a (Server side) Blazor application that includes the default AzureAD Authentication. This works well for authenticated users - challenging on the entrance ( _Host.cshtml ) file, redirecting and then back once authenticated. I need to have a couple of pages not requiring authentication - I don't want the user being challenged and redirected to Microsoft. What is the correct way to do this? I have experimented with the AllowAnonymousAttribute , the AllowAnonymousToPage

How to get fresh information whether the user is logged in?

删除回忆录丶 提交于 2021-02-11 16:58:40
问题 In this particular case I am only interested in getting info whether the user is logged in or not. Following the answers How to enable/disable elements depending whether the user is logged in or not? I can fetch this information but there is one odd problem. I use Blazor demo app which displays provided "LoginDisplay.razor" component at top, my own page uses following code: @code { protected override async Task OnInitializedAsync() { Console.WriteLine("Init"); var authState = await

How to get fresh information whether the user is logged in?

末鹿安然 提交于 2021-02-11 16:57:54
问题 In this particular case I am only interested in getting info whether the user is logged in or not. Following the answers How to enable/disable elements depending whether the user is logged in or not? I can fetch this information but there is one odd problem. I use Blazor demo app which displays provided "LoginDisplay.razor" component at top, my own page uses following code: @code { protected override async Task OnInitializedAsync() { Console.WriteLine("Init"); var authState = await

How to securely authenticate users with Twitter on xamarin mobile apps?

佐手、 提交于 2021-02-11 15:48:22
问题 I would like to get a user id and user access token from Twitter in a Xamarin app. I would prefer to use a library if possible like Xamarin.Auth. There is a nice description here how to do it: https://mobileprogrammerblog.wordpress.com/2016/01/23/xamarin-android-twitter-authentication/ In short: var auth = new XA.OAuth1Authenticator( consumerKey: "CONSUMER_KEY", consumerSecret: "CONSUMER_SECRET", // THIS IS THE PROBLEM requestTokenUrl: new Uri("https://api.twitter.com/oauth/request_token"),

Authenticating to Github reppository with Username and Password credentials in Jenkins pipeline

自作多情 提交于 2021-02-11 15:37:34
问题 I have created a Multibranch pipeline on Jenkins 2.107.2. I want to perform Git commands like git commit , git push etc on the cloned repository. To authenticate to the GitHub repository, I have configured my user credentials in Jenkins using (https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Binding+Plugin). I have tried few approaches to use these credentials to authenticate but they result in different errors. First Approach stage('clone'){ steps{ checkout([$class: 'GitSCM', branches

Using Firebase Auth Custom Claims for custom permissions

早过忘川 提交于 2021-02-11 15:21:56
问题 Initial situation: I am developing an app (iOS, Android, Web App) that primarily uses Firebase Auth Email & Password to authorize my users and manage permissions . There are complex configuration options for the security and access settings that can be individually set for each user . There are also premade roles (e.g. admin, manager, etc.) . However, these are only templates and don't need to be used by the person who manages the user accounts. The permissions can be customized for each user

authorization and authentication mechanism in GCP

廉价感情. 提交于 2021-02-11 14:21:54
问题 I want to create a Udemy like video platform where a user can see all videos but can watch videos only that he has purchased. I am making a rest call to get the videos from the storage bucket from an angular application, using Firebase authentication here. In my GET request to storage bucket I am passing the access token that I got from Firebase authn . Does this access token can be used to determine scope of the user to access video in a bucket? Assume if I have given read access for a video

Tomcat 9.x.x Client Authentication using X.509 Certificates

爷,独闯天下 提交于 2021-02-11 14:17:03
问题 I’m using Tomcat 9.0.19 and trying to enable X.509 cert.-based client authentication (AKA I&A) for a particular Web application. In summary, the Tomcat works for an application that has basic I&A enabled over one-way TLS. When accessing the Web application that has certificate-based I&A, Tomcat does not seem to request a client certificate as part of the Server Hello message, prior to sending Server Hello Done and it later fails the authentication check: 02-Jan-2020 13:00:40.371 FINE [https

How to handle authentication between API and Client in Azure

白昼怎懂夜的黑 提交于 2021-02-11 14:13:54
问题 I'm not really sure what to call this but basically I have a service app that just serves up an API while occasional calling external APIs in the background to keep the data updated. Aside from authenticating to the external APIs there is no other authentication on this app. Then, I have a front end app that uses the API of the service app to get data and display it to the user, and optionally modify some of the data. This app is setup to authenticate against Azure AD and has app roles setup