开发者

Openid and types of data

开发者 https://www.devze.com 2023-02-12 02:53 出处:网络
I\'m trying to implement an Openid server and the problem is: Exchange special data types. As i understood on openid you can only exchange ns and ax data schemas for other types of data you should im

I'm trying to implement an Openid server and the problem is: Exchange special data types.

As i understood on openid you can only exchange ns and ax data schemas for other types of data you should imple开发者_C百科ment a new schema and a new extension for the library to support the new schema. Is this right ? And what should be the easiest to add this special data ?

tks for ur time


AX can support both strings and lists of strings out of the box. This works well for most bits, like numbers, names, and the like. Since AX uses URLs as its keys, you can define your own semantics to the value, as long as it can fit into a URLencoded string. Thus, if you need more structure in your response, you can always serialize your values as JSON objects and pack them into the AX values. Keep in mind that this will explode the size of your requests fairly quickly and you could run into 413 errors before you know it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号