starter schema for custom authorization

#1

Tavendo,

Here’s a starter schema for your authorization procedure:

{

"$schema" : "http://crossbar.io/schema#",

"uri" : "com.example.authorize",

"type" : "procedure",

"title" : "Dynamic Authorization procedure for Crossbar.io node.",

"description" : "Called by Crossbar.io to determine the permissions of other clients.",

"args" : [

	{

		"name" : "session",

		"description" : "Dictionary with details on the session that wishes to perform the action.",

		"type" : "object",

		"properties" : {

			"realm" : {

				"description" : "",

				"required" : true

			},

			"authprovider" : {

				"description" : "",

				"required" : true

			},

			"authid" : {

				"description" : "",

				"required" : true

			},

			"authrole" : {

				"description" : "",

				"required" : true

			},

			"authmethod" : {

				"description" : "",

				"required" : true

			},

			"session" : {

				"description" : "",

				"required" : true

			}

		},

		"required" : true

	},

	{

		"type" : "string",

		"name" : "uri",

		"description" : "",

		"required" : true

	},

	{

		"type" : "string",

		"name" : "action",

		"description" : "",

		"required" : true

	}

],

"result" : [

	{

		"type" : "boolean",

		"description" : "Whether authorization should be granted (true) or denied (false).",

		"required" : true

	}

]

}

Maybe we can post reference to this schema on the Dynamic Authorization page:

http://crossbar.io/docs/Authorization/

– Dante

0 Likes

#2

Cool!!

I think we should have schemas for WAMP meta API supported by Crossbar.io built directly into Crossbar.io. This will allow us to do validation, reflection and documention.

Nevertheless, it should also be in the docs pages.

If you car, pls add an issue to Crossbar.io with your suggested schema and this conversation

···

Sent from Mobile (Google Nexus 5)

Am 20.01.2015 09:43 schrieb “Dante Lorenso” da...@lorenso.com:

Tavendo,

Here’s a starter schema for your authorization procedure:

{

“$schema” : “http://crossbar.io/schema#”,

“uri” : “com.example.authorize”,

“type” : “procedure”,

“title” : “Dynamic Authorization procedure for Crossbar.io node.”,

“description” : “Called by Crossbar.io to determine the permissions of other clients.”,

“args” : [

  {
  	"name" : "session",
  	"description" : "Dictionary with details on the session that wishes to perform the action.",
  	"type" : "object",
  	"properties" : {
  		"realm" : {
  			"description" : "",
  			"required" : true
  		},
  		"authprovider" : {
  			"description" : "",
  			"required" : true
  		},
  		"authid" : {
  			"description" : "",
  			"required" : true
  		},
  		"authrole" : {
  			"description" : "",
  			"required" : true
  		},
  		"authmethod" : {
  			"description" : "",
  			"required" : true
  		},
  		"session" : {
  			"description" : "",
  			"required" : true
  		}
  	},
  	"required" : true
  },
  {
  	"type" : "string",
  	"name" : "uri",
  	"description" : "",
  	"required" : true
  },
  {
  	"type" : "string",
  	"name" : "action",
  	"description" : "",
  	"required" : true
  }

],

“result” : [

  {
  	"type" : "boolean",
  	"description" : "Whether authorization should be granted (true) or denied (false).",
  	"required" : true
  }

]

}

Maybe we can post reference to this schema on the Dynamic Authorization page:

http://crossbar.io/docs/Authorization/

– Dante

You received this message because you are subscribed to the Google Groups “Crossbar” group.

To unsubscribe from this group and stop receiving emails from it, send an email to crossbario+...@googlegroups.com.

To post to this group, send email to cross...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/crossbario/4d3fb2a6-4768-4781-8887-ff51693ff948%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

0 Likes