vue-authenticate icon indicating copy to clipboard operation
vue-authenticate copied to clipboard

Can this be used for an enterprise identity provider (non-Social provider)?

Open dosstx opened this issue 4 years ago • 8 comments

Hi, Is this package only for using social providers (Google, Github, etc.) ? Could I use my own company's identity provider ?

dosstx avatar Jun 04 '21 00:06 dosstx

No, you can add your own provider. I think there were some examples in issues here where people built apps with their own providers.

https://github.com/dgrubelic/vue-authenticate/blob/master/src/options.js#L165 https://github.com/dgrubelic/vue-authenticate/blob/master/src/options.js#L174

dgrubelic avatar Jun 04 '21 10:06 dgrubelic

@dgrubelic Thanks for the info! Will check it out...

dosstx avatar Jun 04 '21 10:06 dosstx

@dgrubelic It's possible I have something working....but not quite there yet.

Can you explain what this property does?

https://github.com/dgrubelic/vue-authenticate/blob/f4aa8cb9a416842557213edaab19a30085b0a0aa/src/options.js#L176

I am unsure what to put there. Thanks.

dosstx avatar Jun 04 '21 15:06 dosstx

This is the endpoint on your server app which will initiate and be used for oauth2 authentication. You handle all loading users other stuff there. There was example app how to implement that on server, but I removed it and will make example app that uses this library.

dgrubelic avatar Jun 04 '21 16:06 dgrubelic

@dgrubelic OK, any examples you can provide would be awesome! I still don't quite understand what to put there. Is it one of these endpoints? image

It's not the OAuth Authorization URL, right? I'm already providing that for the authorizationEndpoint property in the providers object.

dosstx avatar Jun 04 '21 20:06 dosstx

OK, everything seems to work locally at least...but still confused about difference between these two properties in the providers object:

authorizationEndpoint and url.

Thanks for the library and I look forward to any future updates.

dosstx avatar Jun 08 '21 21:06 dosstx

@dosstx did you resolve your issue.

Have made a draft explanation the properties in this ticket: #241

ajmas avatar Dec 09 '21 18:12 ajmas

I haven't tried it yet but that draft explanation looks very helpful! Thanks.

dosstx avatar Dec 12 '21 12:12 dosstx