I'm trying the next steps that begin with contextual applications and understand
I do not understand where and how to declare dynamic resources for Oeth to implement its own. In the reference app, the resources are coded harder within XML configuration: < / P>
& lt; Bean id = "Photo services" category = "org.springframework.security.oauth.examples.sparklr.impl.PhotoServiceImpl" & gt; & Lt; Asset name = "photo" & gt; & Lt; List & gt; & Lt; Bean class = "org.springframework.security.oauth.examples.sparklr.PhotoInfo" & gt; & Lt; Property Name = "id" value = "1" /> & Lt; Property Name = "Name" Value = "photo1.jpg" /> & Lt; Property Name = "userId" value = "marissa" /> & Lt; Property Name = "sourceURL" value = "/ org / springframework / security / oauth / example / sparklr / impl / resource / photo1.jpg" /> & Lt; / Bean & gt; & Lt; Bean class = "org.springframework.security.oauth.examples.sparklr.PhotoInfo" & gt; & Lt; Property Name = "id" value = "2" /> & Lt; Property Name = "Name" Value = "photo2.jpg" /> & Lt; Property Name = "User ID" value = "Paul" /> & Lt; Property Name = "sourceURL" value = "/ org / springframework / security / oauth / example / sparklr / impl / resource / photo2.jpg" /> & Lt; / Bean & gt; & Lt ;! - Something else - & gt; & Lt; / List & gt; & Lt; / Property & gt; & Lt; / Bean & gt;
I think there is no way to manage the resources created by users in real users. So: How should this be done?
In the example shown above, it looks like beans is already configured at design time And pre-loaded by the spring.
Do you really consider making and loading beans dynamically during the runtime?
In this way, whenever a new dynamic resource is created, you can access the "Photos" list and add it directly to the "Photos" list?
Comments
Post a Comment