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

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

Open
dosstx opened this issue Jun 4, 2021 · 8 comments

Comments

@dosstx
Copy link

dosstx commented Jun 4, 2021

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

@dosstx dosstx changed the title Can this be used for an enterprise identity provider? Can this be used for an enterprise identity provider (non-Social provider)? Jun 4, 2021
@dgrubelic
Copy link
Owner

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

@dosstx
Copy link
Author

dosstx commented Jun 4, 2021

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

@dosstx dosstx closed this as completed Jun 4, 2021
@dosstx
Copy link
Author

dosstx commented Jun 4, 2021

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

Can you explain what this property does?

url: '/auth/oauth2',

I am unsure what to put there. Thanks.

@dosstx dosstx reopened this Jun 4, 2021
@dgrubelic
Copy link
Owner

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.

@dosstx
Copy link
Author

dosstx commented Jun 4, 2021

@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
Copy link
Author

dosstx commented Jun 8, 2021

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.

@ajmas
Copy link

ajmas commented Dec 9, 2021

@dosstx did you resolve your issue.

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

@dosstx
Copy link
Author

dosstx commented Dec 12, 2021

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

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

No branches or pull requests

3 participants