Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 17, 20205 yr 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.
March 18, 20205 yr Community Expert 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
March 19, 20205 yr Author @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.
March 19, 20205 yr Community Expert 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.
March 19, 20205 yr Author Wondering if any scopes need adding to the client @Stuart Silvester (apologise for being a pain.
March 19, 20205 yr Community Expert "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.
Archived
This topic is now archived and is closed to further replies.