question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect protocol url and scope prefix used for MSOffice365Protocol

See original GitHub issue

When using MSOffice365Protocol as the protocol, during authentication it always fails with error

Unable to fetch auth token. Error: (invalid_client) AADSTS700025: Client is public so neither 'client_assertion' nor 'client_secret' should be presented.

The issue was found to be the following

class MSOffice365Protocol(Protocol): _protocol_url = 'https://outlook.office.com/api/' _oauth_scope_prefix = 'https://outlook.office.com/'

After changing it to the following, it seems to work fine

_protocol_url = 'https://outlook.office365.com/api/' _oauth_scope_prefix = 'https://outlook.office365.com/'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
janscascommented, Dec 10, 2019

Unable to fetch auth token. Error: (invalid_client) AADSTS700025: Client is public so neither ‘client_assertion’ nor ‘client_secret’ should be presented.

Hi, I’ve further studied this issue.

You have to set the redirect uri. It’s not enough to check the checkbox for the redirect uri. You have to set the redirect uri text box with the desired redirect uri.

In the following image you can see that the textbox redirect uri is not set.

image

See #317

@rayeeskm can you check that? @Narcolapser is this your case?

On the contrary if you have set a public client on purpose… well this library is not yet prepared to handle a device authentication flow.

0reactions
janscascommented, Feb 6, 2020

Closing this as there’s no answer from the user

Read more comments on GitHub >

github_iconTop Results From Across the Web

Connection — O365 documentation - GitHub Pages
Initializes the oauth authorization flow, getting the authorization url that the user must approve. Parameters. requested_scopes (list[str]) – list of scopes to ...
Read more >
O365 - PyPI
This project aims to make interacting with Microsoft Graph and Office 365 easy to do in a Pythonic way. Access to Email, Calendar,...
Read more >
Hướng dẫn python-o365 - Hàng Hiệu
scopes = ['my_required_scopes'] # you can use scope helpers here (see Permissions and Scopes section) account = Account(credentials) if not account.
Read more >
Untitled
The next step is to determine how to use this command. ... MSGraphProtocol to use the Microsoft Graph API; MSOffice365Protocol to use the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found