Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author miniOrange

    (@cyberlord92)

    Hi,

    Thanks for reaching out.

    You can set configuration below in Rocket Chat.

    Identity Path : https://domain.com/wp-content/plugins/miniorange-oauth-20-server/web/moserver/resource
    Authorize Path : https://domain.com/wp-content/plugins/miniorange-oauth-20-server/web/moserver/authorize
    Identity Token Sent Via Token Path : https://domain.com/wp-content/plugins/miniorange-oauth-20-server/web/moserver/token

    Also, you need to configure correct Callback URL of Rocket Chat in WordPress OAuth plugin.

    If you can’t find the value of that, please share error page URL where you see “redirect_uri_mismatch” so that we can tell you the exact callback value.

    Thanks.

    Thread Starter reached

    (@reached)

    See below for “redirect_url_mismatch”

    https://wordpressdomain.com/wp-content/plugins/miniorange-oauth-20-server/web/moserver/authorize?client_id=CLIENTID&redirect_uri=https://rockchatdomain.com/_oauth/wordpress?close&response_type=code&state=obfuscated=&scope=obfuscated

    Identity Path:https://rhpss.com/wp-content/plugins/miniorange-oauth-20-server/web/moserver/resource

    Identity Token Sent Via:https://rhpss.com/wp-content/plugins/miniorange-oauth-20-server/web/moserver/token

    Token Path:https://rhpss.com/wp-content/plugins/miniorange-oauth-20-server/web/moserver/token

    Authorize Path:https://rhpss.com/wp-content/plugins/miniorange-oauth-20-server/web/moserver/authorize

    This might be an issue with Rockchat having 4 rather than 3 oauth messages. Not quite sure.

    Plugin Author miniOrange

    (@cyberlord92)

    Please update below callback URL in our OAuth server plugin.

    https://rockchatdomain.com/_oauth/wordpress

    It should work.

    Let us know if you see any other issue.

    Thread Starter reached

    (@reached)

    Call back URL is already set to that. When I navigate to the callback URL directly it says login successful. Unsure of next steps. ??

    Plugin Author miniOrange

    (@cyberlord92)

    Can we have a temporary access to your WordPress admin so that we can check the issue?

    Please share access on [email protected]

    Thread Starter reached

    (@reached)

    Hello, I gathered more information that may help us diagnose. When I navigate to the “https://wordpressdomain.com/wp-content/plugins/miniorange-oauth-20-server/web/moserver/token” i get the below page:

    Whoops, looks like something went wrong.
    MethodNotAllowedHttpException in RouterListener.php line 148:
    No route found for “GET /moserver/token”: Method Not Allowed (Allow: POST)

    1.in RouterListener.php line 148
    2. at RouterListener->onKernelRequest(object(GetResponseEvent),
    ‘kernel.request’, object(EventDispatcher))
    3. at call_user_func(array(object(RouterListener), ‘onKernelRequest’),
    object(GetResponseEvent), ‘kernel.request’, object(EventDispatcher)) in
    EventDispatcher.php line 164
    4. at EventDispatcher->doDispatch(array(array(object(RouterListener),
    ‘onKernelRequest’), array(object(LocaleListener), ‘onKernelRequest’),
    array(object(MiddlewareListener), ‘onKernelRequest’)), ‘kernel.request’,
    object(GetResponseEvent)) in EventDispatcher.php line 53
    5. at EventDispatcher->dispatch(‘kernel.request’, object(GetResponseEvent)) in
    HttpKernel.php line 126
    6. at HttpKernel->handleRaw(object(Request), ‘1’) in HttpKernel.php line 66
    7. at HttpKernel->handle(object(Request), ‘1’, true) in Application.php line
    547
    8. at Application->handle(object(Request)) in Application.php line 524
    9. at Application->run(object(Request)) in index.php line 22

    MethodNotAllowedException in UrlMatcher.php line 101:
    1. in UrlMatcher.php line 101
    2. at UrlMatcher->match(‘/moserver/token’) in RedirectableUrlMatcher.php line
    30
    3. at RedirectableUrlMatcher->match(‘/moserver/token’) in LazyUrlMatcher.php
    line 51
    4. at LazyUrlMatcher->match(‘/moserver/token’) in RouterListener.php line 127
    5. at RouterListener->onKernelRequest(object(GetResponseEvent),
    ‘kernel.request’, object(EventDispatcher))
    6. at call_user_func(array(object(RouterListener), ‘onKernelRequest’),
    object(GetResponseEvent), ‘kernel.request’, object(EventDispatcher)) in
    EventDispatcher.php line 164
    7. at EventDispatcher->doDispatch(array(array(object(RouterListener),
    ‘onKernelRequest’), array(object(LocaleListener), ‘onKernelRequest’),
    array(object(MiddlewareListener), ‘onKernelRequest’)), ‘kernel.request’,
    object(GetResponseEvent)) in EventDispatcher.php line 53
    8. at EventDispatcher->dispatch(‘kernel.request’, object(GetResponseEvent)) in
    HttpKernel.php line 126
    9. at HttpKernel->handleRaw(object(Request), ‘1’) in HttpKernel.php line 66
    10. at HttpKernel->handle(object(Request), ‘1’, true) in Application.php line
    547
    11. at Application->handle(object(Request)) in Application.php line 524
    12. at Application->run(object(Request)) in index.php line 22

    Do you have any idea what this could mean? Google doesn’t appear to be helpful and I don’t want to edit a .php file that will break with the next update.

    Thank you!

    Thread Starter reached

    (@reached)

    Downloaded newest update (2.5.1) in hopes of resolution. Error message is the same but I am now working through the below errors on the plugin settings page:

    Notice: Undefined index: tab in /var/www/sites/rhpss.com/wp-content/plugins/miniorange-oauth-20-server/pointers.php on line 42

    Notice: Undefined index: tab in /var/www/sites/rhpss.com/wp-content/plugins/miniorange-oauth-20-server/pointers.php on line 52

    Notice: Undefined index: tab in /var/www/sites/rhpss.com/wp-content/plugins/miniorange-oauth-20-server/pointers.php on line 78

    Notice: Undefined index: tab in /var/www/sites/rhpss.com/wp-content/plugins/miniorange-oauth-20-server/pointers.php on line 96

    Plugin Author miniOrange

    (@cyberlord92)

    Hi,

    We have published the updated version with the fix. Please install that.

    No route found for “GET /moserver/token”: Method Not Allowed (Allow: POST)

    For that other issue you pointed above, you can not navigate to URL in browser “https://wordpressdomain.com/wp-content/plugins/miniorange-oauth-20-server/web/moserver/token”.

    This URL can only be accessed with POST request from API call.

    Can you tell me which OAuth client you are using so that we can help you with end to end setup.

    Thanks.

    Thread Starter reached

    (@reached)

    I was using RocketChat, but I ended up switching over to SAML rather than OAUTH. Thank you for your assistance thus far. While I did not get this exact issue resolved, I found a solution. I am going to mark this resolved.

    I am also getting {“error”:”redirect_uri_mismatch”,”error_description”:”The redirect URI provided is missing or does not match”,”error_uri”:”#section-3.1.2″}

    this appears to be an issue within rocketchat settings you need to change the following and restart rocketchat

    general > site url > {yoursite}.com:3000

    I am having another issue with oauth and rocketchat but i believe its an issue with rocketchat https://github.com/RocketChat/Rocket.Chat/issues/13340

    • This reply was modified 5 years, 9 months ago by wargames.
    • This reply was modified 5 years, 9 months ago by wargames.
    • This reply was modified 5 years, 9 months ago by wargames.
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Rocketchat–>WordPress: The redirect URI provided is missing or does not match’ is closed to new replies.