Joey_M Posted March 17, 2020 Share Posted March 17, 2020 Can members login into an IPS powered site by using OAuth? I'm trying to understand this method, as I am seeking notifications to be made for my webview app so that users can get their own specific ones. If a user logs in with OAuth via the app, it can generate a registrationToken that can be used. Link to comment Share on other sites More sharing options...
Stuart Silvester Posted March 18, 2020 Share Posted March 18, 2020 12 hours ago, Joey_M said: Can members login into an IPS powered site by using OAuth? I'm trying to understand this method, as I am seeking notifications to be made for my webview app so that users can get their own specific ones. If a user logs in with OAuth via the app, it can generate a registrationToken that can be used. Yes, you can enable OAuth 2 server functionality in AdminCP > System > REST & OAuth. You would need to create an OAuth client with the appropriate configuration for your integration. The access token can then be used to access the REST API for account information (i.e. /core/me). We've also got some further documentation for that here: https://invisioncommunity.com/developers/rest-api Joey_M 1 Link to comment Share on other sites More sharing options...
Joey_M Posted March 19, 2020 Author Share Posted March 19, 2020 @Stuart Silvester: How do you call the API parameters via Firebase? I don't know if you're allowed to help, but if anyone can I would greatly appreciate it. Link to comment Share on other sites More sharing options...
Stuart Silvester Posted March 19, 2020 Share Posted March 19, 2020 10 minutes ago, Joey_M said: @Stuart Silvester: How do you call the API parameters via Firebase? I don't know if you're allowed to help, but if anyone can I would greatly appreciate it. I'm not too familiar with Firebase or how it works, but you would send a normal GET HTTP request to the API with the access token as a bearer token in a Authorization header. Joey_M and sobrenome 2 Link to comment Share on other sites More sharing options...
Joey_M Posted March 19, 2020 Author Share Posted March 19, 2020 Thanks @Stuart Silvester. I'm seeing an invalid client message now. Link to comment Share on other sites More sharing options...
Joey_M Posted March 19, 2020 Author Share Posted March 19, 2020 Wondering if any scopes need adding to the client @Stuart Silvester (apologise for being a pain. Link to comment Share on other sites More sharing options...
Stuart Silvester Posted March 19, 2020 Share Posted March 19, 2020 "invalid_client" suggests you're either passing the wrong client_id value or not passing it at all. When you create an OAuth client in Invision Community, you get a basic 'profile' & 'email' scope that should be sufficient for OAuth (notice the 'Authorized User' section already has the /core/me endpoint available. sobrenome 1 Link to comment Share on other sites More sharing options...
Recommended Posts