Category "authorization"

User.Identity.IsAuthenticated is false when I try to access through IP address

I published web site to IIS on Windows 10. If I try login to website through forms by url http://localhost, I can access to system. But If I try login by url ht

Unable to Request from Twitter Ads Api using OAuth in Python

I am stuck on a issue with Twitter-ads-api. I have completed the authorization and got the oauth-verifier token, but after this I am stuck on how to request for

Q: OAuth2 for Imgur giving me over capacity status 500 error

I am trying to follow a tutorial for an image upload application For Vue.js however I am unable to authenticate with OAuth2 for Imgur. I am following exactly wh

ABAC with Monorepo Microservices: What is the best approach?

At my work, I have a task to search and find solutions to implement the ABAC authorization in our microservices organized in a monorepo. We have some products a

Authorizing based on request headers in ASP.NET Core

I have an application behind an SAML Service Provider. That means, the SP does authentication for me and I get user data in HTTP request headers (like SP_USER_N

What to use instead of org.jboss.security.auth.spi.DatabaseServerLoginModule?

We are switching to new Java 17 and new WildFly 26. Using older Java, we had a custom login module class which extended org.jboss.security.auth.spi.DatabaseServ

How to add authentication to a Google apps script without it expiring?

I have a Google apps script project which I use as a web application to save some data gathered from a web page (JavaScript only) to My Google sheets (think of

Some Microsoft endpoints do not accept the JWT token produced by MSAL

I have an MSAL app that creates authentication tokens for accessing various Microsoft APIs. I provide the app specific scopes, and it creates a corresponding au

admin pages in Next js that only authorized users

I have admin pages in Next js that only authorized users should have access to. I have a cookie verification service: import { NextApiRequest } from 'next' impo

I get jwt.exceptions.DecodeError: Invalid header padding

So I have a simple flask app. Logging in creates a token: token = jwt.encode({'user': token_data}, app.config['SECRET_KEY']).decode('utf-8') The middleware loo

Define rules for the access control using CASL

I read the article from link and understand there are 3 ways to define abilities. But I have no clue to combine them together. For example, In the three struct

How to properly implement authorization code flow in .NET?

I am trying to properly implement Authorization Code flow for a 3rd party REST api for my users to use. However, I am not sure if I am doing it correctly with t

Discord oauth2 /users/@me/guilds error 401

It is supposed to get all the guilds a user is joined in. It gets the bearer auth right, but it always errors with code 401. When using a external API (https://

Why Doesn't my Authorization Header need "Bearer"?

I am currently working with a group of applications that are running on two separate, but equivalent, environments (Referred to as ENV1 and ENV2). I have been u

Authorazation with JWT Token - How to get Authorized Automatically

I'm having a problem getting a user to be authorized. I'm making a web Api and in the controller where the login method is, it creates a token (JWT Token / Bear

How to return HttpStatusCode 404 for incorrect url with FallbackPolicy set in AuthorizationOptions?

In the web application I'm currently working on there is a requirement for all users to be authenticated. This is currently handled by using an AuthorizeFilter.

Role based authorization using Keycloak and .NET core

Having a few minor issues with role based authorization with dotnet core 2.2.3 and Keycloak 4.5.0. In Keycloak, I've defined a role of 'tester' and a client rol

Remove/revoke GitHub OAuth 'access_token'

I am using this GitHub's API to generate an access token for the user (mobile app), using this tutorial: https://developer.github.com/apps/building-oauth-apps/

Authorization: Any Benefit of OAuth2 for First-Party Web and Mobile Clients

I would like to know whether there is any security benefit to using OAuth2 for authorization where all clients are developed, owned and controlled by the API de

Authorization: Any Benefit of OAuth2 for First-Party Web and Mobile Clients

I would like to know whether there is any security benefit to using OAuth2 for authorization where all clients are developed, owned and controlled by the API de