925 new features in WINDEV, WEBDEV and WINDEV Mobile 2025
SECURE WEB SERVICE 763 N e w f e a t u r e W D W B WM SECURE ACCESS TO WEB SERVICES WEBDEV enables you to easily create REST web services. In version 2025, you can also create REST web services that require an OAuth access token. WEBDEV 2025 takes care of everything! Benefit of this new feature in version 2025: A widely used type of web service 764 N e w f e a - t u r e W D W B WM HOW IT WORKS To access certain web ser- vices, an access token is re- quired. Users must therefore obtain the token to call those web services. OAuth is a standard protocol that allows them to obtain this token. Reminder: OAuth lets you man- age access authorizations. This token is provided by an au- thentication server, using the OAuth protocol. Benefit of this new feature in version 2025: Standard protocol 765 N e w f e a t u r e W D W B WM HOW TO CREATE A SECURE WEB SERVICE Simply create a web service as usual. In the web service description, specify the address of the desired authentication server. With WEBDEV 2025, that’s all you need to do. Initial authentication oauth_parameters is OAuth2Parameters ... // Authentication request MyToken is AuthToken = AuthIdentify ( oauth_parametres ) Secure web service call // Retrieve number of invoices for the logged-in user req is httpRequest req .AuthToken = MyToken req .URL = "http://serv.mycompany.com/V1/Billing/ Invoice?num_invoice=" + num req . Send () Benefit of this new feature in version 2025: Easy definition 766 N e w f e a t u r e W D W B WM HOW TO CREATE A SECURE WEB SERVICE WITH DIF- FERENT AUTHORIZA- TION LEVELS For more specific autho- rizations, you can use detailed permissions, known as “scopes”. This type of authoriza- tion is defined through a specific interface in the authentication server. Some examples in- clude: write access, access to a specific re- source, etc. You can specify the scopes required for each web service entry point. Benefit of this new feature in version 2025: WLanguage makes it easy 767 N e w f e a t u r e W D W B WM USE THE OAUTH SERVER OF YOUR CHOICE A secure web service requires an OAuth server. WEBDEV 2025 lets you choose between: • a third-party server • the OAuth server provided as standard with WEBDEV Application Server (see new feature 769). If you are using a third-party authentication server, simply check that it has the necessary services. Benefit of this new feature in version 2025: Yes, an OAuth server is provided as standard CREATE SECURE REST WEB SERVICES N e w f e a t u r e s i n W I ND E V 2 0 2 5 WE B D E V 2 0 2 5 W I ND E V Mo b i l e 2 0 2 5 & W I ND E V S u i t e S a a S 72
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==