vapor-community / Imperial

Federated Authentication with OAuth providers
MIT License
155 stars 48 forks source link

Can't set client ID and secret directly #33

Open rafiki270 opened 5 years ago

rafiki270 commented 5 years ago

Limiting user only to ENV is ... well, limiting. At the moment I can configure my sytem through either an ENV or a config json file (usually used locally for development as ENV get lost everytime you do vapor xcode) so now I can never start my app from xcode after I re-generate project.

I do have my own mechanisms to read ENV and having this separate just breaks the configuration unification of our product.

I am happy to implement whatever but would be awesome to hear some ideas about this first :)

preducaeduard commented 4 years ago

I can't set client id and secret id, where i should to set this ?. Missing enviroment variable 'FACEBOOK_CLIENT_ID'. How can i fix this?

0xTim commented 4 years ago

@preducaeduard you can either set the environment variable in the Xcode scheme, or use a .env file

@rafiki270 for the original issue, I think being about to pass it in as an override would be good enough