Skip to content

Bug #1

@melug

Description

@melug

dev.mobicom.mn дээр аппликэшнээ нэмсний дараа танайхаас дахиж зөвшөөрөл авдаг юм уу? Хоёр адилхан хүсэлтийг хоёр өөр аппликэшнээс илгээхэд хоёр өөр хариу ирж байна. cURL-ээр холбогдсон лог нь:

curl -v 'http://api.mobicom.mn/oauth/v1/authorizer/authz?redirect_uri=my.package%3A%2F%2Foauth&scope=http%3A%2F%2Fapi.mobicom.mn%2Foauth%2Fv1%2Fresource%2Fvoicemail%2Foff+http%3A%2F%2Fapi.mobicom.mn%2Foauth%2Fv1%2Fresource%2Fvoicemail%2Fon&client_id=3fe8fc9b5d2173ff&response_type=code'
* About to connect() to api.mobicom.mn port 80 (#0)
*   Trying 27.123.214.131... connected
* Connected to api.mobicom.mn (27.123.214.131) port 80 (#0)
> GET /oauth/v1/authorizer/authz?redirect_uri=my.package%3A%2F%2Foauth&scope=http%3A%2F%2Fapi.mobicom.mn%2Foauth%2Fv1%2Fresource%2Fvoicemail%2Foff+http%3A%2F%2Fapi.mobicom.mn%2Foauth%2Fv1%2Fresource%2Fvoicemail%2Fon&client_id=3fe8fc9b5d2173ff&response_type=code HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host: api.mobicom.mn
> Accept: */*
> 
< HTTP/1.1 302 Moved Temporarily
< Date: Fri, 24 May 2013 23:18:16 GMT
< Server: GlassFish Server Open Source Edition 3.1.2.2
< X-Powered-By: Servlet/3.0 JSP/2.2 (GlassFish Server Open Source Edition 3.1.2.2 Java/Sun Microsystems Inc./1.6)
< Pragma: no-cache
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Cache-Control: no-cache
< Cache-Control: no-store
< Location: http://
< Content-Type: text/html;charset=UTF-8
< Content-Language: en-US
< Content-Length: 157
< Connection: close
< 
<html>
<head><title>Document moved</title></head>
<body><h1>Document moved</h1>
This document has moved <a href="http://">here</a>.<p>
</body>
</html>
* Closing connection #0

Харин танай үзүүлэнгийн аппыг дууриалгаж хандсан лог:

curl -v 'http://api.mobicom.mn/oauth/v1/authorizer/authz?redirect_uri=mn.mobicom.openapiclient%3A%2F%2Foauthresponse&scope=http%3A%2F%2Fapi.mobicom.mn%2Foauth%2Fv1%2Fresource%2Fvoicemail%2Foff+http%3A%2F%2Fapi.mobicom.mn%2Foauth%2Fv1%2Fresource%2Fvoicemail%2Fon&client_id=3fd1c68e834e7936&response_type=code'
* About to connect() to api.mobicom.mn port 80 (#0)
*   Trying 27.123.214.131... connected
* Connected to api.mobicom.mn (27.123.214.131) port 80 (#0)
> GET /oauth/v1/authorizer/authz?redirect_uri=mn.mobicom.openapiclient%3A%2F%2Foauthresponse&scope=http%3A%2F%2Fapi.mobicom.mn%2Foauth%2Fv1%2Fresource%2Fvoicemail%2Foff+http%3A%2F%2Fapi.mobicom.mn%2Foauth%2Fv1%2Fresource%2Fvoicemail%2Fon&client_id=3fd1c68e834e7936&response_type=code HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host: api.mobicom.mn
> Accept: */*
> 
< HTTP/1.1 200 OK
< Date: Fri, 24 May 2013 23:18:02 GMT
< Server: GlassFish Server Open Source Edition 3.1.2.2
< X-Powered-By: JSP/2.2
< Pragma: no-cache
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Cache-Control: no-cache
< Cache-Control: no-store
< Content-Type: text/html;charset=UTF-8
< Content-Language: en-US
< Set-Cookie: JSESSIONID=8d5af8fe0b01f02c761b53a2439f; Path=/; HttpOnly
< Connection: close
< Transfer-Encoding: chunked
< 





<html>
    <head>
        <title>Application</title>
        <link rel="stylesheet" type="text/css" href="style/login.css" />
    </head>

    <body>
        <form id="loginParams" action="approvement.htm" method="POST">
            <h2>M-Store</h2>

            <input id="username" name="username" placeholder="Username" class="text-field" type="text" value="" size="70"/>
            <input id="password" name="password" placeholder="Password" class="text-field" type="password" value="" size="70"/>
            <input type="submit" value="Sign In" class="button" name="btn_signin" />
            <a href="mn.mobicom.openapiclient://oauthresponse?error=cancel&error_description=back+button+clicked">back</a>
        </form>
    </body>
</html>
* Closing connection #0

Энэ хоёр хариу яагаад өөр байна?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions