260 questions
0
votes
0
answers
87
views
Blazor AuthorizeRouteView not showing Authorizing Layout
I have a .NET 9 Blazor Maui hybrid application.
In my Routes.razor i have this:
<CascadingAuthenticationState>
<Router AppAssembly="typeof(MainLayout).Assembly">
<...
0
votes
0
answers
87
views
Authorize not working as expected in Blazor
I have a .NET 8 server-side Blazor app. It uses Entra ID for authentication and I've created a CustomAuthenticationStateProvider that gets roles from a database.
public class ...
1
vote
1
answer
248
views
Laravel Passport authorize
I am attempting to establish a Single Sign-On (SSO) with Laravel and Laravel/Passport, but I am facing a problem. The /oauth/authorize route returns JSON for an invalid client and a view (the ...
0
votes
0
answers
1k
views
Authorization error on the UI in HealthChecks.UI using the UI (/healthchecks-ui endpoint) but works fine when calling the JSON endpoint (/health)
UPDATE:
I definitely have some sort of deep-rooted authentication problem. This doesn't really have anything to do with the HeakthCheck.UI project I don't think.
I set up a simple test controller and ...
2
votes
0
answers
48
views
Authorization across subdomains
I have a case:
In theta.smatyx.com:
Set 1 domain-match cookie (with domain: .smatyx.com), with value of 1 short-lived
jwt, signed with theta.smatyx.com).
In mylong.smatyx.com:
Redirect to page mylong....
1
vote
1
answer
770
views
Unrecognized attribute 'role' on child content element 'Authorized'
I'm getting the error from the title when i try to use the role attribute on the Authorized element in Blazor.
It worked earlier this day. I haven't changed anything actively regarding this.
This is a ...
0
votes
1
answer
93
views
Why is my Authorize failing when I specify a role which the user has, with JWT token
I have implemented a simple JWT authentication system in my code. When using the [Authorize] attribute and then analysing the user claim inside the controller code, I can see that the user has the ...
0
votes
1
answer
72
views
Authorize attribute doesn't work when role is changed
I am using attribute [Authorize] to access endpoint.
For example
[Authorize(Roles = "Admin, CustomerManager, CustomerUser, ClientManager, ClientUser")]
When the user's role is downgraded, ...
0
votes
1
answer
862
views
How to correctly configure AAD App Registration and WebAPI to allow [Authorize]
I have 2 AAD app registrations, one for a desktop client, the other for a web API. I have configured the Authentications as per the Microsoft QuickStart to use microsoft.identity.client and microsoft....
0
votes
0
answers
430
views
How to remove authorize functionality in case of login endpoint in c#?
I have created two endpoints one for login and other for logout and used JWT token to authorize the endpoint.
So when I authorize the whole class using [Authorize] it authorizes both the login and ...
3
votes
1
answer
986
views
Type 'Promise<{ email: any; }>' is not assignable to type 'Awaitable<User>'
I was trying to use NextAuth to add authentication to my Next app. I couldn't solve the following problem
the problem I see is when I hover on authorize
Type '(credentials: Record<string, string>...
0
votes
0
answers
426
views
Handling expired oAuth token in asp.net mvc
I created a custom filter class which inherit ActionFilterAttribute
the method looks like below
public override void OnActionExecuting(HttpActionContext actionContext)
{
//my custom code
}
and my ...
0
votes
1
answer
537
views
Can authorize endpoint return login page? OpenID Connect
Considering on a solution to my earlier problem (Pushed Authorization Request lifetime in OpenID Connect), I figured that PAR could only work if the authorization endpoint provided a login page and ...
1
vote
0
answers
4k
views
Is there support for Certificate Authentication in Swagger UI?
Is there support for Client Certificate Authentication in Swagger UI? If yes, could someone provide an example of enabling it in a solution using asp.net core 5 and Swashbuckle, or point me to a url ...
2
votes
1
answer
433
views
how to set authorize attribute by source application/URL
I have a .NET core web API server that I am communicating with (post/get) from two applications.
The first is an angular website and the second one is a WPF app.
I want the angular website to get ...
0
votes
1
answer
285
views
How Laravel implicit bound middleware work?
I have to update a Laravel 8/9 application and I have an eli5 question about how implicitly bound middleware work.
I have a logged in route to update an entity as follows:
Auth::routes(['verify' => ...
0
votes
0
answers
319
views
SignalR Custom Authorize Attribute
I am trying to implement custom Authorize attribute for .net 5 SignalR component. When I use the attribute, It is being ignored and doesn't get into the custom Authorize class.
[AttributeUsage(...
1
vote
0
answers
386
views
How to authorize a request properly using requests and mechanicalsoup (webscrape)
so my goal is to read the content of a table from a web page with the python library mechanicalsoup
my problem is that I am not able to authorize my requests properly
resulting in <Response [403]&...
0
votes
1
answer
1k
views
ASP.NET Set Authorization Policy to one particular AuthenticationScheme
Short version: I want to apply an IAuthorizationRequirement but only for particular users. Or find a different way to solve my problem.
Long version:
I have an Angular SPA application that uses an ...
0
votes
1
answer
458
views
Change Authorization and Authentication Order Net.Core 3.1
We have an Identity Server 4 to authorize users and custom authorization in API project.
I want to set both of these authorizations together, but first check Identity Server 4 and then my custom ...
1
vote
1
answer
1k
views
Google Sheet integration in Express JS
How can I create a feature in Express JS where users can authorize their Google account with our app. So, we can fetch the google sheet from their accounts and show it in my express app, and if users ...
0
votes
1
answer
159
views
Podio: Domain registered does not match the redirect uri
I was implementing the Podio server-side flow authentication. I used the following url format:
https://podio.com/oauth/authorize?response_type=code&client_id=MY-ID&redirect_uri=http://182.35....
-2
votes
1
answer
819
views
RestEase with Polly refresh token doesn't work
really need some help to understand what I'm doing wrong with my reauthorization policy.
My policy looks like this:
var policy = Policy
.HandleResult<HttpResponseMessage>(message =&...
0
votes
0
answers
84
views
How to switch to register component when login component is on NotAuthorized? Blazor
I am new to Blazor and i need to help. I'm trying to explain what the problem is.
MainLayout.razor
@inherits LayoutComponentBase
@attribute [Authorize]
<AuthorizeView>
<Authorized>
...
3
votes
2
answers
4k
views
Asp.net core, when in debug, bypass Authorization
I have a test web site which uses the aspnetCore [AuthorizeAttribute] at the entire controller level to ensure only Authenticated Users can hit this site.
While we debug and test new features, we ...