Update 106-StockingLocations to derive scope from environment.fsUrl

Abierto
#228 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
70/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
typescript

Línea de trabajo

Start in samples/106-StockingLocations by following the OFS open-message handling and the getAccessTokenByScope call. Check the sample README and plugin metadata for secured scope configuration; done means fsUrl-derived scope handling and clear missing or unexpected-format errors, with outdated guidance removed.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Is your feature request related to a problem? Please describe.
The 106-StockingLocations sample currently depends on a secured parameter for the Fusion scope. That is unnecessary for this plugin and makes configuration more brittle than needed.

Describe the solution you'd like
Update samples/106-StockingLocations so it derives the scope value from openData.environment.fsUrl instead of reading it from secured parameters.

Expected behavior:

  • read environment.fsUrl from the OFS open message
  • if fsUrl is something like https://ETAQ-DEV4.fs.ocs.oraclecloud.com, derive the scope identifier ETAQ-DEV4
  • use that derived value when constructing the scope for getAccessTokenByScope
  • remove the plugin reliance on securedParams.scope for this sample

Implementation notes:

  • parse the subdomain prefix from environment.fsUrl
  • preserve clear error handling if fsUrl is missing or has an unexpected format
  • update README and plugin metadata to remove outdated scope configuration guidance

Describe alternatives you've considered
Keeping scope in secured parameters works, but it adds manual setup that should be avoidable because the environment already provides enough information.

Additional context
Target sample: samples/106-StockingLocations
Example:

Lenguaje dominante
TypeScript
Estrellas
6
Forks
5
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de oracle-samples/ofs-sample-plugins

Todos los issues de oracle-samples/ofs-sample-plugins

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.