security - Data authorization and OAuth -


i know if there way within oauth limit data user can see once token has been accessed. example, in 'photo sharing' sample 1 application contains list of photos , application wants access photos printing purposes. how can user indicate photo print service should see subset of photos? maybe want printing service see photos .jpg extension, or photos after date, or 'tag'. can additional authorization requirements populated?
have java application , using spring security oauth2 , can accomplish this.

thanks

for instance, can use 'scope' purpose. define custom 'scope', , endpoint of service should interpret custom scope , behave based on that.

for example, define 'pic_jpeg' scope name , describe scope in api document "'pic_jpeg' scope required access jpeg pictures."

a client application access authorization endpoint parameter 'scope=pic_jpeg scopex scopey', , oauth 2.0 authorization server implementation issue access token associated scopes (pic_jpeg scopex , scopey). client application accesses 'pictures' endpoint of service access token, endpoint should confirm access token associated 'pic_jpeg' scope , allow client application access jpeg pictures when confirmed.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -