27 questions
0
votes
1
answer
60
views
Microsoft OAuth Refresh Not Found
I set up a job that periodically fetches a new access token with the refresh token, but after hundreds of successful executions over the last couple of days, I just got the following error:
Client ...
0
votes
1
answer
142
views
How to do silent OAuth logout in Spring Boot?
I'm trying to develop a Microsoft authentication mechanism to let user login & logout. So far the login works smooth and same the logout also. But when I do logout, a page appears of Microsoft ...
0
votes
0
answers
650
views
How to upgrade SMTP to OAUTH for Spring Boot email send function?
I designed and deployed a Spring Boot web application for my company. Users fill in online forms and click the "Send" button to send an email to designated recipients using SMTP through ...
0
votes
0
answers
87
views
How to force the Microsoft switch account / sign in screen and redirect to URL afterwards
I'm looking for a way to force the Microsoft “Switch Account / Select Account” (or preferably even directly the page where they enter email and password) screen, and redirect to a specific URL after ...
0
votes
1
answer
402
views
Unable to generate access token. invalid_grant error, AADSTS65001:The user or administrator has not consented to use the application with ID
Context: I'm building a web app that intends to provide insights and analysis on user's Sharepoint and OneDrive data. Users should be able to come to my web app, connect their Sharepoint and OneDrive ...
0
votes
0
answers
200
views
.NET MAUI Exception System.PlatformNotSupportedException
I am using .NET MAUI using Visual studio for Mac v17.6.10(build 428) with .net8 preview version and Microsoft.Identity.Client for maccatalyst. It throws exception as
**System....
1
vote
1
answer
232
views
Access token from Azure App has 6k+ chars & unable to save encrypted in SQL Server due to length restriction [closed]
To authenticate mail server from an application we use OAuth authentication. Application uses Java mail API for SMTP mail communication. We create an app in Azure and use its client ID and client ...
0
votes
1
answer
234
views
Implementing Incremental consent when using both application and delegated permissions
I have an application permission like TeamsAppInstallation.ReadWriteSelfForUser.All.
I also have some delegated permissions.
I want an admin to allow a small set of permissions including the ...
0
votes
1
answer
2k
views
Implement Microsoft Auth w/ Firebase on Flutter Mobile App
I want to incorporate Microsoft Login into this Flutter app. My school is hosting a competition, and all participants have Microsoft accounts. Integrating these accounts into the mobile app would be ...
1
vote
0
answers
108
views
Firebase with Google Identity Platform fails for Microsoft as IdP
In our Firebase project, we've enabled Microsoft as an IdP. After configuring the app in Azure and creating a Microsoft Business account, we can successfully login (using the popup method):
const ...
-2
votes
1
answer
567
views
Is there any way to know if a user gave consent on behalf of an organization
Organization administrators have an option to "Consent on behalf of your organization".
This feature enables them to give consent for all users within the organization. As a result, users of ...
1
vote
0
answers
229
views
SMTP OAuth2 Authentication for multi-tenant app
I am trying to send Mails via SMTP OAuth2 from Office365 Accounts. I have created a non verified Multitenant Application in Microsoft Entra admin center.
I have registered following permissions for ...
0
votes
1
answer
325
views
How to sign out of Microsoft and Github with Flutter Firebase
I can't seem to force a sign out of Github or Microsoft they way I do for Google. With the help of the google_sign_in package.
Future<GoogleSignInAccount?> _signOutWithGoogle() async {
...
2
votes
2
answers
6k
views
Handling Cookies with Size Over 4096 Bytes - Best Practices
I'm facing a challenge with handling cookies in a web application where I store both an access token and a refresh token issued by Microsoftonline. The combined size of these tokens can sometimes ...
0
votes
1
answer
281
views
OAuth. Resource server uses the wrong Authentication URI (Bearer error=invalid_token)
In a service-to-service oauth communication, I'm trying to send a token request to an external Oauth Token Endpoint and to use the token as a Bearer for a Microsoft solution (Dynamics CRM v.9.1 On-...
1
vote
1
answer
1k
views
Microsoft OAuth - After sign in how do I get the user's email and display name?
I'm adding Microsoft Authentication to Firebase. I'm able to login successfully but I need the user's email and display name. How can I fetch this? So far this is what I have.
export function* ...
0
votes
1
answer
420
views
How to integrate Outlook calendar for MS work account users using Spring Boot?
I want to build a feature where I want to sync users outlook calendar with my app. Any event which users create/reschedule/delete from my app should reflect in users outlook calendars. First step for ...
0
votes
2
answers
8k
views
How to get a refresh token with oauth in microsoft365?
I am trying to use microsoft365 and oauth to get an access and refresh token. According to Microsoft 365 docs, we need to use the "offline_access" scope to get a refresh token along with ...
0
votes
1
answer
661
views
How do I get a user's organization id when they login with Microsoft oauth?
I try to implement the microsoft auth into my application using Laravel Socialite, but since I'm working in a multi-tenant environment, I need to assign a user to a organisation. Is there anything ...
4
votes
3
answers
6k
views
Advice on how to set single redirectURL for EXPO react native app for use with MS Azure AD Authentication
I'm using Expo to get started with an app which authenticates with Azure AD Oauth as per: https://docs.expo.dev/guides/authentication/#azure
It works with a single redirect URL exp://host:port with ...
0
votes
1
answer
412
views
Why do I get, "Firebase: Error getting verification code from microsoft.com response: ..." when implementing Microsoft SSO Provider?
I'm using StyledFirebaseAuth to add Google, Microsoft, and Email/Password Authentication Buttons to my login experience for my users. Google and Email seem to work ok, but Microsoft keeps throwing me ...
1
vote
1
answer
1k
views
Microsoft outlook authentication oAuth2.0
We have a daemon application that makes IMAP connection to access mailbox of user. Earlier we were using plain authentication method of using email ID and password to establish IMAP connection. Now as ...
4
votes
2
answers
6k
views
Microsoft/Azure OAuth failing, my organization lacks a service principal
I've been trying to use the Bing Ads API, but can't even make it past the first step. I've followed these steps to the letter, but am getting stuck at the part where I need to ask for user consent.
I'...
0
votes
1
answer
755
views
ClientConfigurationError Microsoft OAuth Flow
I am implementing the Microsoft Auth code flow but I am stuck with this error.
Based on this code example, here is how I am initializing the client:
const config = {
auth: {
clientId: process....
0
votes
1
answer
2k
views
Admin-approved User.Read.All scope is not granted in the OAuth token scopes
My Azure app has the scope User.Read.All approved by an admin:
I request the following scopes in my oauth registration:
scope:
- profile
- email
- openid
- offline_access
- User.Read.All
-...
0
votes
2
answers
1k
views
Is there any API to revoke a user's token in mocrosoft graph?
I'm looking for an API in microsft graph to revoke a user's token. Apparently, there is no method in O365 python library for this purpose either.
Normally, we can revoke the credentials of our ...
14
votes
4
answers
7k
views
Microsoft Graph API not returning refresh token
I created an app on https://apps.dev.microsoft.com
with the following Application Permissions:
Calendars.Read (Admin Only) Calendars.ReadWrite (Admin Only) User.Read.All (Admin Only)
The following ...