I have an add-on I'm building, but am struggling to identify why I cannot see the api scope I have defined showing up on the user conscent page:
In phrases.xml, I have three corresponding entries as well:
routes.xml
I show the permissions on the OAuth2 client in Admin CP are checked, but still don't see them on the user consent page. If I uncheck another add-on or core api scope, I see them added/removed from the list accordingly; so I've overlooked something; just not sure what.
XML:
<?xml version="1.0" encoding="utf-8"?>
<api_scopes>
<api_scope api_scope_id="myapp:delete_hard"/>
<api_scope api_scope_id="myapp:read"/>
<api_scope api_scope_id="myapp:write"/>
</api_scopes>
In phrases.xml, I have three corresponding entries as well:
XML:
<?xml version="1.0" encoding="utf-8"?>
<phrases>
<phrase title="api_scope.myapp_delete_hard" version_id="1000000" version_string="1.0.0"><![CDATA[Delete hard MyApp]]></phrase>
<phrase title="api_scope.myapp_read" version_id="1000000" version_string="1.0.0"><![CDATA[Read MyApp]]></phrase>
<phrase title="api_scope.myapp_write" version_id="1000000" version_string="1.0.0"><![CDATA[Write MyApp]]></phrase>
</phrases>
routes.xml
XML:
<?xml version="1.0" encoding="utf-8"?>
<routes>
<route route_type="api" route_prefix="myapp" controller="stromb0li\MyApp:MyApp"/>
</routes>
I show the permissions on the OAuth2 client in Admin CP are checked, but still don't see them on the user consent page. If I uncheck another add-on or core api scope, I see them added/removed from the list accordingly; so I've overlooked something; just not sure what.
Last edited: