Jump to content
View in the app

A better way to browse. Learn more.

Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

OAuth

Featured Replies

Posted

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. 

  • 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

  • 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.

 

  • 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.

  • Author

Wondering if any scopes need adding to the client @Stuart Silvester (apologise for being a pain.

fVUGMKD.png

  • 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.

Recently Browsing 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.