Harry Rogers Posted January 3, 2018 Share Posted January 3, 2018 Hi Is there a means to set the authorization header when using a TUniURLFrame? I need to access some resources in a unigui app that are 'protected' by http authentication and I don't want the user to have ready access to the credentials / or require them to type anything in. - it used to be possible to enter these in the url (//username:password@theurl) but that's been long deprecated. Thank you Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 3, 2018 Share Posted January 3, 2018 Hi, Can you explain a bit more what you wanted ? Best regards, Quote Link to comment Share on other sites More sharing options...
Harry Rogers Posted January 4, 2018 Author Share Posted January 4, 2018 Hi When a user access a url that is protected with this mechanism they are presented with a username & password dialog - by the browser. A client can included the credentials in the request header. The simplest implementation (basic access authentication) uses the authorization header field of the http request e.g. the request header contains Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l where QW.... is the username and password string, base64 encoded. Subsequent versions have been defined e.g. Digest access authentication in which the username and password are hashed. I wanted to prevent the 'browser', a TUniURLFrame in my case, from popping up the dialog to request credentials, and have them silently presented via the request header. Thanks Quote Link to comment Share on other sites More sharing options...
Marlon Nardi Posted January 4, 2018 Share Posted January 4, 2018 I believe this would be the same subject: http://forums.unigui.com/index.php?/topic/8433-jose-json-object-signing-and-encryption/?hl=jwt&do=findComment&comment=43253 for this to be possible Farshad would have to implement this Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.