Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Single Sign On Support
Qt 6.11 is out! See what's new in the release blog

Single Sign On Support

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • vivianV Offline
    vivianV Offline
    vivian
    wrote on last edited by vivian
    #1

    Sorry if I am asking the question incorrectly as I need to understand what is SSO better.
    Up until recently, I had a desktop application which would connect to Jira using the REST protocols (QNetworkRequest) using the basic auth with just the username and password.
    Now the users have included Kerberos plugin for Jira and have a Single Sign-On support for their Jira instance.
    So the basic authentication fails and currently we cannot connect to Jira at all.
    Is there something I need to do to enable it from my product or is it some settings from the user's end. I am currently lost and not sure how to proceed.

    Do I need to include some additional library to handle Single Sign-On or in particular work with handling SAML?

    QNetworkRequest request = QNetworkRequest(QUrl(url));
    	if (!username.isEmpty() && !password.isEmpty())
    	{
    		QString concatenated = username + ":" + password;
    		QByteArray data = concatenated.toUtf8().toBase64();
    		QString headerData = "Basic " + data;
    		request.setRawHeader("Authorization", headerData.toUtf8());
    	}
    	if (!contentType.isEmpty())
    		request.setHeader(QNetworkRequest::ContentTypeHeader, QVariant(contentType));
    	return request;
    

    Any help or direction is appreciated. If I need to provide something more to help you all understand what I am trying please let me know.

    1 Reply Last reply
    0
    • Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @vivian it looks like you need to ask the administrator of Jira implementing the Kerberos plugin for SSO what you are required to do from now on. On one side, there are several plugins for Jira (EasySSO, Kantenga, IWAAC, etc.) and on the other side, using Kerberos authentication should involve at least 2 network connections: one to the authentication server where the client proves its identity, and then using the provided ticket on the server actually implementing the desired service the client wants to use (in your case, Jira).

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • vivianV Offline
        vivianV Offline
        vivian
        wrote on last edited by
        #3

        I am going to try and get hold of it. Thanks for the information @Pablo-J-Rogina
        I am still unclear about what changes I need to do from my end.

        Found this link: https://stackoverflow.com/questions/37968689/implementing-spnego-in-qt to help me a little.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved