Discussions
Problems with OAuth
Hello. I am trying to get an application under way, and have had to work very hard to make progress on the oauth flow.
There is an error in the documentation at https://developer.gomotive.com/docs/oauth-20 at the bottom where it says
You can use the following URL for triggering the OAuth 2.0 flow:
https://gomotive.com/oauth/authorize?client_id=<YOUR_CLIENT_ID>&redirect_uri=<YOUR_REDIRECT_URI>&response_type=&scope=<YOUR_SCOPES>
I am supposing it should say response_type=code as token appears to not be supported
Having figured that out, now I find that many scopes listed in the documentation simply don't work for me. I went through one-by-one, initiating the oauth flow with a single scope each time. I am able to get to the install page with these scopes
companies.read eld_devices.read fault_codes.read scorecard_summary.read hos_logs.available_time hos_logs.hours_of_service hos_logs.hos_violation hos_logs.logs hos_logs.manage locations.vehicle_locations_list locations.vehicle_locations_single locations.driver_locations driving_periods.read ifta_reports.trips ifta_reports.summary utilization.driver_utilization utilization.vehicle_utilization utilization.idle_events forms.read form_entries.read driver_performance_events.read speeding_events.read locations.asset_locations camera_connections.read motive_card_transactions.read
But every one of the following scopes gives me an error "The requested scope is invalid, unknown, or malformed.":
users.read users.manage vehicles.read vehicles.manage messages.read messages.manage fuel_purchases.read fuel_purchases.manage groups.read groups.manage inspections_reports.read inspections_reports.manage hos_logs.read dispatch_locations.read dispatch_locations.manage dispatches.read dispatches.manage geofences.read geofences.manage geofence_events.read geofence_asset_events.read documents.read documents.manage assets.read assets.manage motive_card_cards.read motive_card_cards.manage motive_card_spend_profiles.read motive_card_spend_profiles.manage
I have tried deselecting them all in the portal, saving, and reselecting them again in case there was a glitch in the system marking them as not having permission. This did not help.
How can I authorize these scopes for my application?
Thanks for your help.