onos-control | Data Plane Reconciliation Library for ONOS ( µONOS | Continuous Deployment library

 by   onosproject Go Version: v0.0.1 License: No License

kandi X-RAY | onos-control Summary

kandi X-RAY | onos-control Summary

onos-control is a Go library typically used in Devops, Continuous Deployment applications. onos-control has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

Control subsystem for ONOS (µONOS Architecture)
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              onos-control has a low active ecosystem.
              It has 14 star(s) with 16 fork(s). There are 14 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              onos-control has no issues reported. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of onos-control is v0.0.1

            kandi-Quality Quality

              onos-control has no bugs reported.

            kandi-Security Security

              onos-control has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              onos-control does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              onos-control releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi has reviewed onos-control and discovered the below as its top functions. This is intended to give you an instant insight into onos-control implemented functionality, and help decide if they suit your requirements.
            • Run zsh command
            • Main entry point
            • newInitCommand returns a new cobra command for the init command
            • GetRootCommand returns the cobra command
            • initConfig initializes viper
            • newConfigDeleteCommand returns a new cobra . Command for config delete command
            • Run completion command .
            • getCertPool returns a pool of cert pool .
            • newConfigCommand returns a cobra . Command for config subcommands
            • NewServerConfig returns a new ServerConfig
            Get all kandi verified functions for this library.

            onos-control Key Features

            No Key Features are available at this moment for onos-control.

            onos-control Examples and Code Snippets

            No Code Snippets are available at this moment for onos-control.

            Community Discussions

            QUESTION

            SONOS auth token is not being sent in Authorization HTTP header for CQ API calls
            Asked 2021-May-21 at 23:00

            I followed the Sonos docs for adding app authentication and the page for using authentication tokens and the result is that the SMAPI server correctly returns an authToken together with a privateKey back to the controller. I can see the authToken being present in the credentials header inside the SOAP messages sent to my SMAPI server.

            However, despite the many mentions of this inside the Sonos docs pages related to HTTP requests (I will list the resources links down below), the same authToken is not being sent inside the HTTP header Authorization, this making my CQ server unable to validate requester identity.

            I tried the following, without success:

            • checking "Requires authorization header" capability in the customsd page of my Sonos device (I tried this because the docs page about capabilities precisely indicates that checking this "Sends OAuth token in the HTTP Authorization header.")

            • identifying some correlation between the "X-Sonos-" prefix HTTP headers used when the controller sends SOAP messages to my SMAPI server and the "X-Sonos-" prefix HTTP headers used when the device sends HTTP requests to my CQ server (eventually, I could not find any information that would identify the user based on this)

            From Sonos device:

            X-Sonos-Playback-Id: RINCON_48??????D201400:3165321802 <= deviceId inserted after RINCON_

            X-Sonos-Device-Id: Sonos_U????????????????????????6 <= householdId

            X-Sonos-Corr-Id: 267e3e0c-75ca-4b9d-8be4-b8a795a462a3 <= unique each time

            From macOS Controller:

            X-Sonos-Controller-ID: 68:??:??:??:??:07 <= the same each time

            X-Sonos-Api-Key: 8??????e-7??7-4??f-b??6-7??????????0 <= the same each time

            X-Sonos-Corr-Id: 648ec896-e043-44f8-bfba-cd0a80c9d857 <= unique each time

            The docs links I mentioned above that refer the presence of the auth token inside the HTTP Authorization header are the following:

            • the GET /context CQ API method page says to return 401 Unauthorized when "The access token has expired or is invalid."

            • the GET /itemWindows CQ API method page says "the player can use this API to obtain a new access token in the response from your cloud queue server" and "The request contains the access token in the authorization header" and "If the access token is set to expire soon, an updated one is included in the X-Updated-Authorization header of the response"

            • the POST /timePlayed CQ API method page says "The request header contains the access token in the authorization header" and that the method returns ERROR_SONOS_TOKEN_EXPIRED when "SMAPI OAuth token is expired, and user must re-authorize the account"

            • the GET /version CQ API method page says again that "The request contains the access token in the authorization header" and talks about a now deprecated updateToken parameter and also says that "If the access token is set to expire soon, you should include an updated token in the X-Updated-Authorization header."

            But the most clear mention is in the page about HTTP requests, because it's not particular just for the CQ API endpoints but for all HTTP endpoints, even those hosted by the SMAPI server itself. The page reads the following 2 excerpts:

            and

            To conclude, with so many mentions of it in the official Sonos docs, why isn't this essential header being transmitted in the HTTP Authorization header? And how should a CQ verify the identity of the requester without the presence of this authToken on each API method request?

            ...

            ANSWER

            Answered 2021-May-09 at 22:26

            If I follow you correctly, the token is passed in the header under loginToken, see https://developer.sonos.com/build/content-service-add-features/add-authentication/use-authentication-tokens/

            This is not an http header, this is a section of the SOAP envelope. Like this:

            Source https://stackoverflow.com/questions/67316704

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install onos-control

            You can download it from GitHub.

            Support

            The overall design document for µONOS provides information and an overview of the complete effort.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/onosproject/onos-control.git

          • CLI

            gh repo clone onosproject/onos-control

          • sshUrl

            git@github.com:onosproject/onos-control.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link