Results 1 to 10 of 10

Thread: Login failed

  1. #1
    bkrones
    Guest

    Login failed

    Hi there,
    i applied for an API key.
    The app has been approved yesterday.
    But if i try to request an access token by https://www.hidrive.strato.com/oauth...ize?client_id=.... i am prompted to login.
    Entering my credentials fails. Unknown user. Requesting new password fails.
    Now i tried again to request access token -> unsuitable+authorization-flow

    I cannot find a "app login" to change settings.
    So whats wrong?

    Best regards
    Boris
    (Username: bkrones)

  2. #2
    HiDrive Development
    Join Date
    Oct 2013
    Posts
    12
    Hi Boris.

    Can you log-in with your HiDrive user account at https://hidrive.strato.com? If you do not have a HiDrive yet, a free 5GB HiDrive can be registered at https://www.free-hidrive.com/

    Your client credential belongs to a server-based application and the OAuth2 server flow should be used.
    --
    Cornelius Bartke, STRATO HiDrive, Development

  3. #3
    bkrones
    Guest
    I am so sorry. I used my strato login, not hidrive login ;-)
    Now i have two new questions:

    - Where can i change the redirect URL for the access token?

    - Do you have code examples for vb.net / c# or a suitable SDK? May restsharp is possible?

    Best regards
    Boris

  4. #4
    HiDrive Development
    Join Date
    Oct 2013
    Posts
    12
    Quote Originally Posted by bkrones View Post
    - Where can i change the redirect URL for the access token?
    The easiest way is to just reply to the HiDrive Developer Registration mail we sent you when you registered your application and to include the new redirect_uri in your message. Please note that updating the redirect_uri is, at the moment, a manual process and we will get back to you when the new redirect_uri is in effect.

    Quote Originally Posted by bkrones View Post
    - Do you have code examples for vb.net / c# or a suitable SDK? May restsharp is possible?
    The currently available SDKs do not include Visual Basic .NET or C#, sorry.
    --
    Cornelius Bartke, STRATO HiDrive, Development

  5. #5
    Unregistered
    Guest
    Thanks ;-)

    I have now sent an email including the new redirect uri.
    Is there something in progress about a SDK for dotnet / c#?

    Best regards
    Boris

  6. #6
    HiDrive Development
    Join Date
    Oct 2013
    Posts
    12
    Quote Originally Posted by Unregistered View Post
    I have now sent an email including the new redirect uri.
    Your redirect_uri has been updated …

    Quote Originally Posted by Unregistered View Post
    Is there something in progress about a SDK for dotnet / c#?
    As of now, there are no plans for a short-term release of additional SDKs. We expect to have something ready for release at the end of this year or 2017-Q1 but—again—there is no firm plan or timeline at this time.
    --
    Cornelius Bartke, STRATO HiDrive, Development

  7. #7
    bkrones
    Guest
    Ok, thanks ;-)

    Next question: Do i need to repeat the autorisation flow each time the access token has expired?
    As i have seen token has a lifetime of 3600 seconds. After that i have always to request authorsation code again -> new access token.

    The application i build needs that the customer does that only one time because the server will upload the stuff later automatically one time a day.

  8. #8
    HiDrive Development
    Join Date
    Oct 2013
    Posts
    12
    Quote Originally Posted by bkrones View Post
    Do i need to repeat the autorisation flow each time the access token has expired?
    As i have seen token has a lifetime of 3600 seconds. After that i have always to request authorsation code again -> new access token.

    The application i build needs that the customer does that only one time because the server will upload the stuff later automatically one time a day.
    When the user has authorized access to HiDrive for your application your application receives an authorization code via the redirect_uri. This short lived, one time use code embodies the user's decision to grant access to his HiDrive. Your application then uses the authorization code as grant along with its client credential at the /oauth2/token endpoint.

    Your app was registered as a server application. This means that, in contrast to a JavaScript client, your server-side application is capable of keeping the client secret confidential. As a consequence, the HiDrive Auth Server can be a bit more trusting that requests from your application to the are really coming from your app because only your app knows the client secret.

    When the request with the authorization code grant is accepted, the response will therefore contain not only an access token but a refresh token, too. Your application should associate that refresh token with the user that logged in to your site before your application sent your user to HiDrive to authorize access to his HiDrive data. The refresh token is long term representation that the HiDrive Auth Server received a legitimate authorization code from your app (that represents the user's decision to grant access to his HiDrive data).

    Once an access token expires, your app can then can use its client credentials and the refresh token as a grant at the /oauth2/token endpoint (grant_type=refresh_token) to receive a fresh access token, repeatedly.

    All this is explained in more detail on our OAuth2 Authentication page.
    --
    Cornelius Bartke, STRATO HiDrive, Development

  9. #9
    bkrones
    Guest
    Thanks ;-)
    I am sorry, next time i will read before ask ;-)

    Now i have managed the things i need (upload by .net and so on).

    Best regards
    Boris

  10. #10
    Hi,

    Quote Originally Posted by Unregistered View Post
    Thanks ;-)
    Is there something in progress about a SDK for dotnet / c#?
    I've implemented an (inofficial) HiDrive .Net SDK.
    You can find it here:
    https://github.com/Kyrodan/hidrive-dotnet-sdk

    Regrads,
    Kyrodan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •