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

Added UAEPass Provider #1203

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Conversation

ahaneef29
Copy link

@ahaneef29 ahaneef29 commented May 8, 2024

This PR adds UAE Pass provider.

Official UAEPass Website

src/UAEPass/Provider.php Outdated Show resolved Hide resolved
src/UAEPass/Provider.php Outdated Show resolved Hide resolved
src/UAEPass/Provider.php Outdated Show resolved Hide resolved
'uaepass' => [
'client_id' => env('UAEPASS_CLIENT_ID'),
'client_secret' => env('UAEPAS_CLIENT_SECRET'),
'redirect' => env('UAEPAS_REDIRECT_URI')
Copy link
Member

Choose a reason for hiding this comment

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

add env to here for enviroment

Copy link
Author

Choose a reason for hiding this comment

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

Can you please elaborate ?

src/UAEPass/composer.json Outdated Show resolved Hide resolved
'base_url' => env('UAEPASS_BASE_URL'),
'client_id' => env('UAEPASS_CLIENT_ID'),
'client_secret' => env('UAEPAS_CLIENT_SECRET'),
'redirect' => env('UAEPAS_REDIRECT_URI')
Copy link
Member

Choose a reason for hiding this comment

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

to use $this->getConfig('base_url') you need to add base_url here

Copy link
Author

Choose a reason for hiding this comment

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

Please correct me if I'm wrong ? base_url is already added in env as UAEPASS_BASE_URL

Copy link
Member

Choose a reason for hiding this comment

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

It needs to be added to the config in services.php or getConfig with the additional config keys wont find it

Copy link
Author

Choose a reason for hiding this comment

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

Updated with default base_url in ReadMe 3caf8cb

Copy link
Author

Choose a reason for hiding this comment

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

I have tested and it's working fine.

Copy link
Member

@atymic atymic left a comment

Choose a reason for hiding this comment

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

one final change

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.

None yet

2 participants