Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Cross Origin Authorization Error. #85

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

ousid
Copy link
Contributor

@ousid ousid commented Nov 12, 2024

This PR solves AADSTS9002325 Error Code, when you are trying to authenticate (connect) the user, and redirect to the authorization URL.

Steps to produce

  • Define the connect route
Route::group([
'prefix' => 'msgraph',
], function () {
   Route::get('connect', AccountEmailConnect::class);
});
  • Create the method
use Dcblogdev\MsGraph\Facades\MsGraph;

public function __invoke()
{
  return MsGraph::connect();
}
  • Access The URL
  • Authorize The Account
  • You will get the following Error Code message

image

Solution

This PR, add the code challenge param, into the authorization URL, in order to solve the above issue.

@@ -28,32 +28,32 @@ class MsGraph
{
public function contacts(): Contacts
{
return new Contacts();
return new Contacts;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Styling.

@dcblogdev dcblogdev merged commit e95e057 into dcblogdev:master Nov 14, 2024
0 of 4 checks passed
@dcblogdev
Copy link
Owner

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants